+1
-1
@@ -16,6 +16,6 @@ COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
EXPOSE 3000
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget -q --spider http://127.0.0.1:3000/my-v0/ || exit 1
|
||||
CMD wget -q --spider http://127.0.0.1:3000/ || exit 1
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
+1
-6
@@ -4,12 +4,7 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location = /my-v0 {
|
||||
return 301 /my-v0/;
|
||||
}
|
||||
|
||||
location /my-v0/ {
|
||||
rewrite ^/my-v0/(.*)$ /$1 break;
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user