You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
783 B
Docker
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"]
|