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