0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2025-01-18 10:22:28 -05:00
safetwitch-backend/docker/Dockerfile
2023-03-26 19:10:57 -04:00

14 lines
No EOL
294 B
Docker

FROM node:16 AS builder
WORKDIR /app
COPY . .
RUN npm i && npm run build
FROM node:alpine
WORKDIR /app
COPY --from=builder /app/package.json /app/package-lock.json .
COPY --from=builder /app/.env .
COPY --from=builder /app/dist .
RUN npm ci --omit=dev
EXPOSE 7000
ENTRYPOINT ["node", "index"]