Skip to content

Commit e061bda

Browse files
remove inline in docker to view updated changes
1 parent 94fd824 commit e061bda

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

tools/hashing-tool/Dockerfile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,14 @@ RUN apk add --no-cache gettext
77
COPY index.html /usr/share/nginx/html/index.html
88
COPY app.css /usr/share/nginx/html/app.css
99

10+
# Copy nginx config
11+
COPY default.conf /etc/nginx/conf.d/default.conf
12+
1013
# Copy entrypoint script
1114
COPY entrypoint.sh /entrypoint.sh
1215
RUN chmod +x /entrypoint.sh
1316

14-
# Configure nginx to serve on port 3071 with healthcheck
15-
RUN echo 'server { \
16-
listen 3071; \
17-
location / { \
18-
root /usr/share/nginx/html; \
19-
index index.html; \
20-
} \
21-
location = /ops/healthcheck { \
22-
access_log off; \
23-
return 200 "OK"; \
24-
add_header Content-Type text/plain; \
25-
} \
26-
}' > /etc/nginx/conf.d/default.conf
27-
2817
EXPOSE 3071
2918

3019
ENTRYPOINT ["/entrypoint.sh"]
20+
CMD ["nginx", "-g", "daemon off;"]

tools/hashing-tool/default.conf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
server {
2+
listen 3071;
3+
4+
# Healthcheck endpoint for Kubernetes probes
5+
location = /ops/healthcheck {
6+
access_log off;
7+
return 200 "healthy\n";
8+
add_header Content-Type text/plain;
9+
}
10+
11+
location / {
12+
root /usr/share/nginx/html;
13+
index index.html;
14+
try_files $uri $uri/ =404;
15+
}
16+
}
17+

0 commit comments

Comments
 (0)