docker setup

This commit is contained in:
2024-12-26 20:24:15 +01:00
parent 170b472545
commit dd6dbb6236

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM node:20-bullseye as build
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install -g @angular/cli
COPY . ./
RUN ng build --configuration=production
FROM nginx:latest
COPY --from=build app/dist/aftas-angular /usr/share/nginx/html
EXPOSE 80