refactor(docker): use consistent APP_PORT variable naming

Changed Dockerfile to use APP_PORT instead of PORT to match
docker-entrypoint.sh and nginx template. This prevents confusion
about which environment variable controls the nginx port.
This commit is contained in:
Johannes Millan 2026-01-21 11:01:17 +01:00
parent 6dba9237e2
commit ac6be90178

View file

@ -42,7 +42,7 @@ RUN UNSPLASH_KEY=$UNSPLASH_KEY UNSPLASH_CLIENT_ID=$UNSPLASH_CLIENT_ID npm run en
# Production stage
FROM nginx:1
ENV PORT=80
ENV APP_PORT=80
# Install runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends jq && rm -rf /var/lib/apt/lists/*
@ -52,7 +52,7 @@ COPY --from=build /app/dist/browser /usr/share/nginx/html
COPY ./nginx/default.conf.template /etc/nginx/templates/default.conf.template
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
EXPOSE $PORT
EXPOSE $APP_PORT
WORKDIR /usr/share/nginx/html
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]