Merge pull request #4 from AnnoyingRain5/main

Added dockerfile to allow deploying via docker
This commit is contained in:
Jay
2021-09-03 12:51:27 -05:00
committed by GitHub

16
dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# syntax=docker/dockerfile:1
FROM node:12-alpine
EXPOSE 80/tcp
EXPOSE 443/tcp
RUN apk add --no-cache npm python3 make g++
WORKDIR /app
COPY . .
RUN mkdir /config
VOLUME /config
WORKDIR /app/src
RUN mv config.example.json /config/config.json
RUN npm install
WORKDIR /app
RUN echo "cp /config/config.json /app/src/config.json && npm start" > startup.sh
RUN chmod +x startup.sh
ENTRYPOINT "/app/startup.sh"