Skip to content

Commit 853541c

Browse files
author
David Zuckerman
committed
moved some common dev and production settings to base in Dockerfile, fixed some annotation warning
1 parent a23509b commit 853541c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@ RUN groupadd -g 40054 alma && \
1414
# Get list of available packages
1515
RUN apt-get -y update -qq
1616

17+
COPY --chown=bfs . /opt/app
18+
19+
ENTRYPOINT ["/opt/app/bin/bfs"]
20+
CMD ["help"]
21+
1722
# ===============================================
1823
# Target: development
1924
# ===============================================
2025

21-
from base AS development
26+
FROM base AS development
2227

23-
user root
28+
USER root
2429

2530
RUN apt-get -y --no-install-recommends install \
2631
build-essential \
@@ -36,23 +41,18 @@ COPY --chown=bfs Gemfile* .ruby-version ./
3641
RUN bundle config set force_ruby_platform true
3742
RUN bundle config set system 'true'
3843
RUN bundle install
39-
COPY --chown=bfs:bfs . .
4044

41-
ENTRYPOINT ["/opt/app/bin/bfs"]
42-
CMD ["help"]
45+
# COPY --chown=bfs:bfs . .
4346

4447
# =================================
4548
# Target: production
4649
# =================================
4750
FROM base AS production
4851

4952
# Copy the built codebase from the dev stage
50-
COPY --from=development --chown=bfs /opt/app /opt/app
53+
# COPY --from=development --chown=bfs /opt/app /opt/app
5154
COPY --from=development --chown=bfs /usr/local/bundle /usr/local/bundle
5255

5356
WORKDIR /opt/app
5457
RUN bundle config set frozen 'true'
5558
RUN bundle install --local
56-
57-
ENTRYPOINT ["/opt/app/bin/bfs"]
58-
CMD ["help"]

0 commit comments

Comments
 (0)