blob: c7ee29485a31c5b5304f2be38bda21cf4b01709f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# build stage
FROM node:19-slim as build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production build stage
FROM node:19-slim as production
WORKDIR /app
COPY --from=build /app/package*.json ./
RUN npm install --omit=dev
COPY --from=build /app/dist ./dist
COPY --from=build /app/assets ./assets
EXPOSE 8080
VOLUME /static
CMD ["npm", "start"]
|