mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2025-01-18 10:22:28 -05:00
14 lines
No EOL
294 B
Docker
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"] |