Skip to content

Commit

Permalink
Use relative output path
Browse files Browse the repository at this point in the history
After upgrading Nx from 16 to 18, the output
path behavior changed from absolute to relative.
Although no evidence was found in the changelogs,
the change in behavior is proven by experimenting.
  • Loading branch information
Pl217 committed Apr 17, 2024
1 parent 887b6c8 commit 83e67b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ COPY . .
ARG ENVIRONMENT=production
RUN npm run remove-unneeded-deps && \
npm install && \
npm run build hpc-cdm -- --output-path=/srv/src/dist --configuration=$ENVIRONMENT
# Output path is relative to working directory
npm run build hpc-cdm -- --output-path=dist/ --configuration=$ENVIRONMENT

FROM public.ecr.aws/unocha/nginx:stable-beagle

Expand Down

0 comments on commit 83e67b3

Please sign in to comment.