Skip to content

Commit 3349d1b

Browse files
committed
chore(docker): update Dockerfile to include OpenAPI specification
- Added a line to copy the OpenAPI specification from the builder to the runtime image, ensuring it is available for the /docs and /docs/json endpoints.
1 parent f25b24c commit 3349d1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ RUN if [ -f package-lock.json ]; then \
4646
# Copy built application from builder
4747
COPY --from=builder /app/dist ./dist
4848

49-
# Copy necessary files
49+
# Copy OpenAPI spec (required at runtime for /docs and /docs/json)
50+
COPY --from=builder /app/openapi ./openapi
5051
COPY --from=builder /app/.env.example ./.env.example
5152

5253
# Change ownership

0 commit comments

Comments
 (0)