Procházet zdrojové kódy

Fix prod container

... Just copy the gems from the builder for now
Andrew Swistak před 6 roky
rodič
revize
18ecc71e4d
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      Dockerfile

+ 4 - 2
Dockerfile

@@ -50,10 +50,12 @@ FROM ruby:2.6.3-alpine AS prod
 ENV RAILS_ENV=production
 RUN apk add --update --no-cache $RUBY_PACKAGES
 
+RUN mkdir /app
+WORKDIR /app
+
 # (Re)install only dependencies we need for prod instead of copying everything
 # from the builder
-RUN bundle install --jobs 4 --retry 5 --without development test
-
+COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
 # Grab the app with all compiled assets and docker configuration from builder
 COPY --from=builder /app/ /app/