Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit 1f49b36

Browse files
authored
fix nginx configuration in docker image (#38)
Signed-off-by: Olivier Vernin <olivier.vernin@suse.com> Signed-off-by: Olivier Vernin <olivier.vernin@suse.com>
1 parent 0170156 commit 1f49b36

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ RUN npm run build
99
# Production stage
1010
FROM nginx:stable-alpine
1111
COPY --from=build-stage /app/dist /usr/share/nginx/html
12+
COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
1213

1314
# Dynamic labels are defined from the goreleaser configuration ".goreleaser.yaml"
14-
LABEL org.opencontainers.image.authors="Olivier Vernin<me@olblak.com>
15+
LABEL org.opencontainers.image.authors="Olivier Vernin<me@olblak.com>"
1516
LABEL org.opencontainers.image.title="Updatemonitor-ui"
1617
LABEL org.opencontainers.image.description="The Updatemonitor UI"
1718
LABEL org.opencontainers.image.source https://github.com/updatecli/app-dashboard

docker/nginx/conf.d/default.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
server {
2+
listen 80 default_server;
3+
4+
server_name _;
5+
root /usr/share/nginx/html;
6+
7+
index index.html;
8+
9+
location / {
10+
try_files $uri $uri/ /index.html;
11+
}
12+
}

0 commit comments

Comments
 (0)