swave-frontend/Dockerfile
José Manuel a7e1c99a65
Some checks failed
gitea/swave-frontend/pipeline/head There was a failure building this commit
Initial commit
2024-10-02 22:56:10 +02:00

9 lines
258 B
Docker

FROM node:20.16-alpine AS build
COPY . /app
WORKDIR /app
RUN npm install && npm run build:prod && rm -rf node_modules/
FROM nginx:1.17.9-alpine AS runtime
COPY --from=build /app/default.conf /etc/nginx/conf.d/
COPY --from=build /app/dist/ /var/www
EXPOSE 80