main-site/Dockerfile
Neshura 698daed1c6
Some checks failed
Run Tests on Code / test (push) Successful in 24s
Build and Release Docker Image / test (push) Successful in 36s
Build and Release Docker Image / release (push) Has been cancelled
Build and Release Docker Image / build (push) Has been cancelled
Fix Dockerfile
2024-01-01 21:21:07 +01:00

19 lines
No EOL
202 B
Docker

FROM node:20 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"]