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
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Now build for optimal caching
RUN pnpm run build

FROM nginxinc/nginx-unprivileged:stable-alpine-perl
FROM nginxinc/nginx-unprivileged:stable-alpine-slim

ENV NGINX_ENTRYPOINT_QUIET_LOGS=1

Expand All @@ -39,7 +39,7 @@

CMD ["nginx", "-g", "daemon off;"]

HEALTHCHECK --interval=5m --timeout=3s CMD curl -fsS http://localhost:8080/ || exit 1
HEALTHCHECK --interval=5m --timeout=3s CMD wget -q -O /dev/null http://localhost:8080/ || exit 1

Check warning on line 42 in docker/Dockerfile

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace this invocation of "wget" with the ADD instruction.

See more on https://sonarcloud.io/project/issues?id=UCMercedACM_Chapter-Website&issues=AaA3U4nCAgjWB_r7UZhf&open=AaA3U4nCAgjWB_r7UZhf&pullRequest=867

LABEL org.opencontainers.image.title="Chapter-Website"
LABEL org.opencontainers.image.description="ACM @ UC Merced's website"
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
ports:
- 3000:8080
healthcheck:
test: curl -f http://localhost:8080/ || exit 1
test: wget -q -O /dev/null http://localhost:8080/ || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
Expand Down
2 changes: 1 addition & 1 deletion docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ server {
gzip_vary on;
gzip_comp_level 6;
gzip_min_length 1024;
gzip_static on;
gzip_proxied any;
gzip_types text/css text/plain text/xml application/javascript application/json
application/manifest+json image/svg+xml;

Expand Down