virtualtabletop-docker/Dockerfile
decryp7 cb548c701c
All checks were successful
Publish Docker image / Push Docker image (push) Successful in 6m29s
upgrade to node.js 21
2024-09-03 09:55:17 +08:00

19 lines
457 B
Docker

FROM node:21
ENV NODE_ENV=production
EXPOSE 8272
VOLUME /virtualtabletop-main/save
WORKDIR /app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm install --production
COPY . .
COPY config.template.json config.json
RUN sed -i 's/minifyJavascript": false/minifyJavascript": true/' config.json
RUN sed -i 's@externalURL": "http://localhost:8272"@externalURL": "https://virtualtabletop.decryptology.net"@' config.json
CMD [ "node", "server.mjs" ]