You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
345 B
Docker

2 days ago
FROM node:alpine AS base
2 days ago
WORKDIR /app
COPY package.json package-lock.json ./
2 days ago
FROM base AS deps
2 days ago
RUN npm install
2 days ago
FROM deps AS build
2 days ago
COPY . .
RUN npm run build
FROM base AS runtime
2 days ago
COPY --from=deps /app/node_modules ./node_modules
2 days ago
COPY --from=build /app/dist ./dist
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
2 days ago
CMD node ./dist/server/entry.mjs