forked from GitHub/virtualtabletop
decryp7
cb548c701c
All checks were successful
Publish Docker image / Push Docker image (push) Successful in 6m29s
19 lines
457 B
Docker
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" ]
|