main-site/Dockerfile

21 lines
253 B
Text
Raw Permalink 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
ENV KUMA_USERNAME ''
ENV KUMA_PASSWORD ''
2023-12-20 07:19:28 +00:00
2024-01-01 20:21:07 +00:00
EXPOSE 8000
CMD ["yarn", "preview"]