aupl-ss24-sudoku-solver/Dockerfile
Technical University Darmstadt Germany c8019d04cd Initial commit
2024-06-06 12:28:40 +02:00

14 lines
376 B
Docker

FROM node:lts-alpine AS builder
ENV NODE_ENV=production
# RUN apk add --no-cache python3 make g++
COPY dist/package*.json ./
RUN npm install --omit=dev
FROM node:lts-alpine AS app
WORKDIR /usr/src/app
ENV NODE_ENV=production
COPY --from=builder node_modules ./node_modules
COPY dist/ .
VOLUME [ "/usr/src/app/save" ]
EXPOSE 80
CMD ["node", "--enable-source-maps", "index.js"]