diff --git a/Dockerfile b/Dockerfile index 25dc856..875dcc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM nginx:1.27.0-alpine COPY dist /usr/share/nginx/html +COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/manifest.yaml b/manifest.yaml index ff047dd..93e99eb 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -17,7 +17,7 @@ spec: - name: leaf containers: - name: amber - image: registry.leafdev.top/leaf/amber-web:v0.0.1 + image: registry.leafdev.top/leaf/amber-web:v0.0.1-fix-2 imagePullPolicy: IfNotPresent ports: - containerPort: 80 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..41889e3 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,14 @@ +server { + listen 80; + listen [::]:80; + server_name localhost; + location / { + root /usr/share/nginx/html; + index index.html; + try_files $uri $uri/ /index.html; + } + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +} \ No newline at end of file