File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ COPY --chown=bfs Gemfile* .ruby-version ./
4141RUN bundle config set force_ruby_platform true
4242RUN bundle config set system 'true'
4343RUN bundle install
44+ <<<<<<< HEAD
4445
4546# COPY --chown=bfs:bfs . .
4647
@@ -52,6 +53,20 @@ FROM base AS production
5253# Copy the built codebase from the dev stage
5354# COPY --from=development --chown=bfs /opt/app /opt/app
5455COPY --from=development --chown=bfs /usr/local/bundle /usr/local/bundle
56+ =======
57+
58+ # COPY --chown=bfs:bfs . .
59+
60+ # =================================
61+ # Target: production
62+ # =================================
63+ FROM base AS production
64+
65+ # Copy the built codebase from the dev stage
66+ # COPY --from=development --chown=bfs /opt/app /opt/app
67+ COPY --from=development --chown=bfs /usr/local/bundle /usr/local/bundle
68+
69+ USER bfs
5570
5671WORKDIR /opt/app
5772RUN bundle config set frozen 'true'
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ services:
1313 - ./:/opt/app:rw
1414 - ./secrets:/run/secrets:ro
1515 secrets :
16- - source : SSH_KEY
17- target : /opt/app /.ssh/id_rsa
16+ - source : SSH_KEY
17+ target : /home/bfs /.ssh/id_rsa
1818 uid : " 40061"
1919 gid : " 40061"
2020 mode : 0400
You can’t perform that action at this time.
0 commit comments