toolshed/deploy/prod/Dockerfile.frontend.prod
jedi 37350f59c3
All checks were successful
continuous-integration/drone/push Build is passing
stash
2024-04-06 18:51:44 +02:00

14 lines
308 B
Docker

ROM node:alpine as builder
WORKDIR /app
COPY ./package.json /app/package.json
COPY . /app
RUN npm ci --only=production
RUN npm run build
FROM nginx:alpine as runner
#RUN apk add --update npm
WORKDIR /app
COPY --from=builder /app/dist /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf
EXPOSE 80