2023-09-14 03:04:31 -06:00
|
|
|
FROM node:20-alpine as builder
|
2022-02-27 09:34:15 -07:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
|
2023-08-03 21:05:44 -06:00
|
|
|
RUN corepack enable
|
|
|
|
RUN yarn install --immutable
|
2024-06-02 10:26:32 -06:00
|
|
|
RUN yarn run build:server && yarn run build:static
|
2022-02-27 09:34:15 -07:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2023-09-14 03:04:31 -06:00
|
|
|
FROM node:20-alpine
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2024-01-27 14:00:06 -07:00
|
|
|
ARG CI_COMMIT_SHA
|
|
|
|
ARG CI_COMMIT_BRANCH
|
|
|
|
|
|
|
|
ENV COMMIT_SHA=$CI_COMMIT_SHA
|
|
|
|
ENV COMMIT_BRANCH=$CI_COMMIT_BRANCH
|
2022-02-25 11:18:46 -07:00
|
|
|
|
2020-12-11 03:11:03 -07:00
|
|
|
WORKDIR /app
|
2022-02-27 11:45:18 -07:00
|
|
|
COPY --from=builder /app/package.json /app/package.json
|
|
|
|
COPY --from=builder /app/dist /app/dist
|
|
|
|
COPY --from=builder /app/content /app/content
|
|
|
|
COPY --from=builder /app/views /app/views
|
2022-02-27 09:34:15 -07:00
|
|
|
COPY --from=builder /app/static /app/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
|
|
|
|
2023-09-14 03:04:31 -06:00
|
|
|
CMD node ./dist/
|