Files
game-server-watcher/Dockerfile
Smith 8114cc9fa0 🐋 upd. dockerfile
* upd. jsoneditor build
 * upd. readme
2024-04-30 21:39:22 +02:00

29 lines
411 B
Docker

# syntax = docker/dockerfile:1
##########
FROM node:20 as base
LABEL fly_launch_runtime="Node.js"
WORKDIR /app
ENV NODE_ENV="production"
##########
FROM base as builder
COPY --link package.json package-lock.json ./
RUN npm ci --include=dev
COPY --link . .
RUN npm run build
RUN rm -rf node_modules
##########
FROM base
COPY --from=builder /app /app
RUN npm ci
EXPOSE 8080
CMD [ "npm", "run", "start" ]