fix
This commit is contained in:
parent
995a8b3476
commit
8c7626a5c9
2 changed files with 11 additions and 0 deletions
|
@ -26,6 +26,8 @@ RUN /root/.cargo/bin/dx bundle --platform web
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
RUN rm -rf /usr/share/nginx/html/*
|
||||||
|
|
||||||
COPY --from=builder /app/target/dx/cdb_client/release/web/public /usr/share/nginx/html
|
COPY --from=builder /app/target/dx/cdb_client/release/web/public /usr/share/nginx/html
|
||||||
|
|
9
nginx.conf
Normal file
9
nginx.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue