main-site/Dockerfile

19 lines
211 B
Text
Raw Normal View History

FROM node:20-bookworm as build
2023-12-20 07:19:28 +00:00
WORKDIR /app
2024-01-01 20:21:07 +00:00
COPY . ./
RUN yarn install
2023-12-20 07:19:28 +00:00
RUN yarn build
2024-01-01 20:21:07 +00:00
FROM node:20-alpine
2023-12-20 07:19:28 +00:00
WORKDIR /app
2024-01-01 20:21:07 +00:00
COPY --from=build /app .
2023-12-20 07:19:28 +00:00
ENV NODE_ENV production
2024-01-01 20:21:07 +00:00
EXPOSE 8000
CMD ["yarn", "preview"]