Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions tools/hashing-tool/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ RUN apk add --no-cache gettext
COPY index.html /usr/share/nginx/html/index.html
COPY app.css /usr/share/nginx/html/app.css

# Copy nginx config
COPY default.conf /etc/nginx/conf.d/default.conf

# Copy entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

# Configure nginx to serve on port 3071
RUN echo 'server { \
listen 3071; \
location / { \
root /usr/share/nginx/html; \
index index.html; \
} \
}' > /etc/nginx/conf.d/default.conf

EXPOSE 3071

ENTRYPOINT ["/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
17 changes: 17 additions & 0 deletions tools/hashing-tool/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
server {
listen 3071;

# Healthcheck endpoint for Kubernetes probes
location = /ops/healthcheck {
access_log off;
return 200 "healthy\n";
add_header Content-Type text/plain;
}

location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ =404;
}
}