Files
api_test/web/frontend/Dockerfile
T
2026-09-13 11:24:09 +02:00

13 lines
239 B
Docker

#build
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
#run
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80