jasper print speed refactor working
This commit is contained in:
+15
-2
@@ -1,7 +1,7 @@
|
||||
# ----- Build Stage -----
|
||||
# Using a specific Ruby version (e.g., 3.3) for stability
|
||||
ARG RUBY_VERSION=3.4.8
|
||||
FROM docker.io/library/ruby:$RUBY_VERSION-slim as base
|
||||
FROM docker.io/library/ruby:3.4.8-slim as base
|
||||
|
||||
# Install production system dependencies
|
||||
RUN --mount=type=cache,target=/var/cache/apt \
|
||||
@@ -27,6 +27,8 @@ WORKDIR /usr/src/app
|
||||
|
||||
RUN gem install foreman
|
||||
|
||||
# RUN chmod +x /usr/src/app/bin/jobs
|
||||
|
||||
# Copy runtime Ruby dependencies and the precompiled assets from the builder stage
|
||||
# COPY --from=builder /usr/local/bundle /usr/local/bundle
|
||||
# COPY --from=builder /usr/src/app /usr/src/app
|
||||
@@ -37,6 +39,17 @@ RUN gem install foreman
|
||||
# && touch /usr/local/var/run/watchman/.not-empty \
|
||||
# && chmod 2777 /usr/local/var/run/watchman
|
||||
|
||||
# COPY . .
|
||||
|
||||
# 1. Add bin/jobs script to container
|
||||
COPY bin/jobs /usr/src/bin/jobs
|
||||
|
||||
# 2. Make the script executable
|
||||
RUN chmod +x /usr/src/bin/jobs
|
||||
|
||||
# 3. Set it as the entrypoint
|
||||
# ENTRYPOINT ["/usr/src/bin/jobs"]
|
||||
|
||||
# The entrypoint script is a good practice for handling Rails server startup
|
||||
ENTRYPOINT ["./bin/docker-entrypoint-development"]
|
||||
|
||||
@@ -44,4 +57,4 @@ ENTRYPOINT ["./bin/docker-entrypoint-development"]
|
||||
EXPOSE 3002
|
||||
|
||||
# Set the default command to run the Rails server
|
||||
CMD ["./bin/dev"]
|
||||
CMD ["./bin/dev", "bin/jobs start"]
|
||||
|
||||
Reference in New Issue
Block a user