This commit is contained in:
JMARyA 2025-06-07 22:15:44 +02:00
parent 995a8b3476
commit 8c7626a5c9
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 11 additions and 0 deletions

View file

@ -26,6 +26,8 @@ RUN /root/.cargo/bin/dx bundle --platform web
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /app/target/dx/cdb_client/release/web/public /usr/share/nginx/html

9
nginx.conf Normal file
View file

@ -0,0 +1,9 @@
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}