0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2025-01-31 00:29:09 -05:00
safetwitch-backend/docker/Dockerfile

14 lines
294 B
Text
Raw Normal View History

2023-03-26 19:10:57 -04:00
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"]