@@ -14,13 +14,18 @@ RUN groupadd -g 40054 alma && \
1414# Get list of available packages
1515RUN 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
2530RUN apt-get -y --no-install-recommends install \
2631 build-essential \
@@ -36,23 +41,18 @@ COPY --chown=bfs Gemfile* .ruby-version ./
3641RUN bundle config set force_ruby_platform true
3742RUN bundle config set system 'true'
3843RUN 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# =================================
4750FROM 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
5154COPY --from=development --chown=bfs /usr/local/bundle /usr/local/bundle
5255
5356WORKDIR /opt/app
5457RUN bundle config set frozen 'true'
5558RUN bundle install --local
56-
57- ENTRYPOINT ["/opt/app/bin/bfs" ]
58- CMD ["help" ]
0 commit comments