Skip to content

Commit c07c061

Browse files
author
David Zuckerman
committed
referencing /opt/app as oppose to /opt/app-root/src as base directory
1 parent 2ede9c7 commit c07c061

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ RUN groupadd -g 40054 alma && \
1010
mkdir -p /opt/app && \
1111
chown -R bfs:bfs /opt/app
1212

13+
WORKDIR /opt/app
1314
COPY --chown=bfs Gemfile* .ruby-version ./
1415
RUN bundle config set force_ruby_platform true
1516
RUN bundle config set system 'true'
1617
RUN bundle install
1718
COPY --chown=bfs . .
1819

1920
USER bfs
20-
ENTRYPOINT ["/opt/app-root/src/bin/bfs"]
21+
ENTRYPOINT ["/opt/app/bin/bfs"]
2122
CMD ["help"]

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ services:
99
COA_APP_KEY: "${COA_APP_KEY}"
1010
BFS_SFTP_USER: "${BFS_SFTP_USER}"
1111
volumes:
12-
- ./:/opt/app-root/src:rw
12+
- ./:/opt/app:rw
1313
- ./secrets:/run/secrets:ro
1414
secrets:
1515
- source: SSH_KEY
16-
target: /opt/app/src/.ssh/id_rsa
16+
target: /opt/app/.ssh/id_rsa
1717
uid: "40061"
1818
gid: "40061"
1919
mode: 0400

0 commit comments

Comments
 (0)