|
|
@@ -29,7 +29,9 @@ RUN yarn install && yarn cache clean
|
|
|
|
|
|
# Copy our app over now
|
|
|
COPY bin/ /app/bin
|
|
|
-COPY .rspec Rakefile .ruby-version /app/
|
|
|
+COPY Rakefile /app/
|
|
|
+COPY .rspec .ruby-version tsconfig.json babel.config.js postcss.config.js \
|
|
|
+ .browserslistrc .prettierrc.js .rubocop.yml .eslintrc.js /app/
|
|
|
COPY vendor/ /app/vendor
|
|
|
COPY config.ru /app/config.ru
|
|
|
COPY config/ /app/config
|
|
|
@@ -38,8 +40,7 @@ COPY public/ /app/public
|
|
|
COPY storage/ /app/storage
|
|
|
COPY lib/ /app/lib
|
|
|
COPY db/ /app/db
|
|
|
-COPY app/assets/ /app/app/assets
|
|
|
-COPY app/javascript/ /app/app/javascript
|
|
|
+COPY app/ /app/app
|
|
|
|
|
|
# Compile our assets, moving unneeded directories out of way for the prod image
|
|
|
# after compilation has completed.
|
|
|
@@ -53,7 +54,7 @@ FROM base AS dev
|
|
|
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
|
|
|
COPY --from=builder /app/ /app/
|
|
|
COPY --from=builder /var/cache/app/ /app/
|
|
|
-COPY spec /app/spec
|
|
|
+COPY spec/ /app/spec
|
|
|
|
|
|
# Watchman is required for relay-compiler to run in watch mode
|
|
|
COPY --from=icalialabs/watchman /usr/local/bin/watchman* /usr/local/bin/
|