add docker for release; add cicdg
Build and Deploy Docker / build (push) Successful in 3m49s
Build and Deploy Docker / deploy (push) Successful in 30s

This commit is contained in:
2026-07-14 15:01:23 +02:00
parent 50186b6840
commit 5e3595f97f
4 changed files with 89 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM node:22.15 as build
RUN mkdir /public
WORKDIR /public
COPY . .
RUN npm install
RUN npm run build
FROM nginx:alpine
COPY --from=build /public/dist /usr/share/nginx/html
COPY ./services/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
+22
View File
@@ -0,0 +1,22 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location /api/ {
proxy_pass http://backend/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
try_files $uri $uri/ /index.html;
}
}