mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
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:
parent
6dba9237e2
commit
ac6be90178
1 changed files with 2 additions and 2 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue