This commit is contained in:
2025-12-05 09:54:35 +01:00
parent 9994c7b2f6
commit 8637dbbc45
7 changed files with 54 additions and 176 deletions

19
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM node:latest 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 ./nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build app/dist/helloasso/browser/ /usr/share/nginx/html
EXPOSE 80

10
frontend/nginx.conf Normal file
View File

@@ -0,0 +1,10 @@
server {
listen 0.0.0.0:80;
listen [::]:80;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html =404;
}
}