main-site/Dockerfile
Neshura 103cfa5872
All checks were successful
Run Tests on Code / test (push) Successful in 24s
Apply env var approach to CI and Dockerfile
2024-01-03 23:00:44 +01:00

21 lines
No EOL
253 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
ENV KUMA_USERNAME ''
ENV KUMA_PASSWORD ''
EXPOSE 8000
CMD ["yarn", "preview"]