Files
game-server-watcher-a-sync/Dockerfile
a-sync ec3b861c69 upd. Dockerfile & release actions
- omit dev deps from lxc image
 - add linux/arm64 release
 - bump version
 - upd. gamedig
 - audit fix.
2024-09-07 13:40:42 +02:00

29 lines
422 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 --omit=dev
EXPOSE 8080
CMD [ "npm", "run", "start" ]