[c] hardening of Dockerfile #4

Merged
sangelo merged 3 commits from hardening into main 2024-05-10 13:50:07 +00:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 30dbe25051 - Show all commits

View file

@ -23,7 +23,7 @@ COPY --from=builder /git/build /app
RUN addgroup -S web && adduser -S web -G web && chown -R web:web /app
# Caddyfile configuration to serve files from /app
RUN echo -e ":80 {\n root * /app\n try_files {path}.html {path}\n file_server\n}" > /etc/caddy/Caddyfile
RUN echo -e ":80 {\n root * /app\n try_files {path}.html {path}\n file_server\n}\n:8080 {\n respond /health \"OK\" 200\n}" > /etc/caddy/Caddyfile
# Expose port 80
EXPOSE 80

View file

@ -7,3 +7,5 @@ services:
no_cache: true
ports:
- "3000:80"
- "3080:8080"