Skip to content

Commit e1e4a3e

Browse files
committed
ARG PUBLIC_URL has overriden the existing ENV PUBLIC_URL causing the page to load in the front end
1 parent cdd1ca5 commit e1e4a3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ RUN bun install
6969
# Build here
7070
# After install it should hopefully be stable until the local directory changes
7171
ENV QUICK_BUILD true
72-
ENV PUBLIC_URL /ohif-viewer/
7372
# ENV GENERATE_SOURCEMAP=false
7473
ARG APP_CONFIG=config/default.js
75-
ARG PUBLIC_URL=/
74+
ARG PUBLIC_URL=/ohif-viewer/
75+
ENV PUBLIC_URL=${PUBLIC_URL}
7676

7777
RUN bun run show:config
7878
RUN bun run build
@@ -87,7 +87,7 @@ FROM nginxinc/nginx-unprivileged:1.27-alpine as final
8787
#RUN apk add --no-cache bash
8888
ENV PORT=8080
8989
ENV PORT=${PORT}
90-
ARG PUBLIC_URL=/
90+
ARG PUBLIC_URL=/ohif-viewer/
9191
ENV PUBLIC_URL=${PUBLIC_URL}
9292
RUN rm /etc/nginx/conf.d/default.conf
9393
USER nginx

0 commit comments

Comments
 (0)