docker setup
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
|
||||||
Reference in New Issue
Block a user