Skip to content

Commit c48fa5d

Browse files
committed
Trim runtime image copy set
1 parent b742e99 commit c48fa5d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ app.json
1313
bin/
1414
coverage/
1515
docs/
16+
!docs/api/
17+
!docs/api/v1/
18+
!docs/api/v1/openapi.yaml
1619
Dockerfile
1720
Procfile
1821
Rakefile

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ COPY --chown=$USER:$USER Gemfile Gemfile.lock app.rb config.ru ./
9393
COPY --chown=$USER:$USER app ./app
9494
COPY --chown=$USER:$USER config ./config
9595
COPY --chown=$USER:$USER public ./public
96+
COPY --chown=$USER:$USER docs/api/v1/openapi.yaml ./docs/api/v1/openapi.yaml
9697
COPY --from=frontend-builder --chown=$USER:$USER /app/frontend/dist ./frontend/dist
9798

9899
CMD ["bundle", "exec", "puma", "-C", "./config/puma.rb"]

0 commit comments

Comments
 (0)