video-server-frontend/Dockerfile
Jose134 93db45b209
Some checks failed
gitea/video-server-frontend/pipeline/head There was a failure building this commit
Initial commit
2024-08-11 02:53:49 +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