|
@@ -22,9 +22,11 @@ RUN yarn install
|
|
|
# Copy our app over now
|
|
# Copy our app over now
|
|
|
COPY . /app
|
|
COPY . /app
|
|
|
|
|
|
|
|
|
|
+# Copy the docker configurations over
|
|
|
|
|
+COPY config/database.yml.docker config/database.yml
|
|
|
|
|
+
|
|
|
# And compile our assets
|
|
# And compile our assets
|
|
|
-RUN rails assets:precompile && \
|
|
|
|
|
- rm -rf node_modules tmp log
|
|
|
|
|
|
|
+RUN rails assets:precompile
|
|
|
|
|
|
|
|
FROM ruby:2.6.3-alpine
|
|
FROM ruby:2.6.3-alpine
|
|
|
|
|
|
|
@@ -40,9 +42,6 @@ WORKDIR /app
|
|
|
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
|
|
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
|
|
|
COPY --from=builder /app/ /app/
|
|
COPY --from=builder /app/ /app/
|
|
|
|
|
|
|
|
-# Copy the docker configurations over
|
|
|
|
|
-COPY config/database.yml.docker config/database.yml
|
|
|
|
|
-
|
|
|
|
|
# Run the server
|
|
# Run the server
|
|
|
EXPOSE 3000
|
|
EXPOSE 3000
|
|
|
CMD rails server -p 3000
|
|
CMD rails server -p 3000
|