main-site/Dockerfile
Neshura 0b82f23d3c
All checks were successful
Run Tests on Code / test (push) Successful in 20s
USe node:20-bookworm for faster Actions
2024-01-01 21:30:03 +01:00

19 lines
211 B
Docker

FROM node:20-bookworm as build
WORKDIR /app
COPY . ./
RUN yarn install
RUN yarn build
FROM node:20-alpine
WORKDIR /app
COPY --from=build /app .
ENV NODE_ENV production
EXPOSE 8000
CMD ["yarn", "preview"]