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

17 lines
470 B
Docker

FROM node:14.2.0-alpine3.11
ENV VERSION=1.5
RUN mkdir -p /opt/app && \
apk add --no-cache --virtual .download ca-certificates wget && \
wget https://github.com/cracker0dks/whiteboard/archive/v$VERSION.tar.gz && \
tar -C /opt/app -xzf v$VERSION.tar.gz && \
rm v$VERSION.tar.gz && \
cd /opt/app/whiteboard-$VERSION && \
npm ci && \
apk del .download
EXPOSE 8080
ENTRYPOINT ["node", "/opt/app/whiteboard-1.5/server.js", "--mode=production"]