Skip to content

Commit c3c52f9

Browse files
author
David Zuckerman
committed
fixed rebase issue
1 parent 9463605 commit c3c52f9

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ COPY --chown=bfs Gemfile* .ruby-version ./
4141
RUN bundle config set force_ruby_platform true
4242
RUN bundle config set system 'true'
4343
RUN 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
5455
COPY --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

5671
WORKDIR /opt/app
5772
RUN bundle config set frozen 'true'

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)