2022-02-27 11:45:18 -07:00
|
|
|
FROM node:16-alpine as builder
|
2022-02-27 09:34:15 -07:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN yarn --pure-lockfile
|
2022-02-27 11:45:18 -07:00
|
|
|
RUN yarn run build
|
2022-02-27 09:34:15 -07:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2022-02-27 11:45:18 -07:00
|
|
|
FROM node:16-alpine
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2020-12-11 03:11:03 -07:00
|
|
|
WORKDIR /app
|
2023-08-25 07:53:42 -06:00
|
|
|
COPY --from=builder /app/package.json ./package.json
|
|
|
|
COPY --from=builder /app/dist ./dist
|
|
|
|
COPY --from=builder /app/content ./content
|
|
|
|
COPY --from=builder /app/views ./views
|
|
|
|
COPY --from=builder /app/static ./static
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2020-08-09 03:43:25 -06:00
|
|
|
EXPOSE 3000
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2022-09-18 13:31:54 -06:00
|
|
|
CMD node --experimental-fetch ./dist/
|