Skip to content

Commit 5f93acb

Browse files
authored
Merge pull request #413 from com-pas/fix/nginx-docker-image
fix: Nginx docker image
2 parents f468c84 + 7845ff2 commit 5f93acb

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

packages/compas-open-scd/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM public.ecr.aws/nginx/nginx:1.29.1
22

3-
COPY nginx.conf /etc/nginx/nginx.conf
3+
COPY ./nginx/default.conf.template /etc/nginx/templates/default.conf.template
44
COPY build/. /usr/share/nginx/html
55

6+
ENV NGINX_PORT=8080
67
EXPOSE 8080
78

89
VOLUME /etc/nginx/

packages/compas-open-scd/nginx.conf

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
server {
2+
listen ${NGINX_PORT};
3+
listen [::]:${NGINX_PORT};
4+
server_name localhost;
5+
6+
location / {
7+
root /usr/share/nginx/html;
8+
index index.html index.htm;
9+
}
10+
11+
error_page 500 502 503 504 /50x.html;
12+
location = /50x.html {
13+
root /usr/share/nginx/html;
14+
}
15+
}

packages/compas-open-scd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "compas-open-scd",
3-
"version": "0.41.0-4",
3+
"version": "0.41.0-5",
44
"repository": "https://github.com/openscd/open-scd.git",
55
"description": "OpenSCD CoMPAS Edition",
66
"directory": "packages/compas-open-scd",

0 commit comments

Comments
 (0)