This repository has been archived on 2021-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
whiteboard-docker/Dockerfile

26 lines
783 B
Docker

FROM node:14.2.0-alpine3.11
ENV WBVERSION=1.5 \
SCVERSION=0.1.9
RUN mkdir -p /opt/app && \
apk add --no-cache --virtual .download ca-certificates wget && \
wget https://github.com/cracker0dks/whiteboard/archive/v$WBVERSION.tar.gz && \
wget https://github.com/aptible/supercronic/releases/download/v$SCVERSION/supercronic-linux-amd64 && \
chmod +x supercronic-linux-amd64 && \
mv supercronic-linux-amd64 /usr/local/bin/supercronic && \
tar -C /opt/app -xzf v$WBVERSION.tar.gz && \
rm v$WBVERSION.tar.gz && \
cd /opt/app/whiteboard-$WBVERSION && \
npm ci && \
apk del .download
ADD crontab /opt/app/whiteboard-$WBVERSION/crontab
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 8080
ENTRYPOINT ["/entrypoint.sh"]