mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2025-01-31 00:29:09 -05:00
14 lines
294 B
Text
14 lines
294 B
Text
|
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"]
|