before adding users
This commit is contained in:
+7
-23
@@ -13,6 +13,8 @@ RUN --mount=type=cache,target=/var/cache/apt \
|
||||
build-essential \
|
||||
less \
|
||||
git \
|
||||
cron \
|
||||
dos2unix \
|
||||
tdsodbc \
|
||||
freetds-dev \
|
||||
libvips \
|
||||
@@ -27,34 +29,16 @@ WORKDIR /usr/src/app
|
||||
|
||||
RUN gem install foreman
|
||||
|
||||
# RUN chmod +x /usr/src/app/bin/jobs
|
||||
# COPY bin/development-entrypoint.sh /bin/development-entrypoint.sh
|
||||
# RUN chown root:root bin/development-entrypoint.sh && chmod +x bin/development-entrypoint.sh
|
||||
|
||||
# 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
|
||||
# COPY --from=watchman_builder /usr/local/bin/watchman /usr/local/bin/watchman
|
||||
# COPY --from=watchman_builder /usr/local/bin/watchman-wait /usr/local/bin/watchman-wait
|
||||
ENTRYPOINT ["./bin/development-entrypoint"]
|
||||
|
||||
# RUN mkdir -p /usr/local/var/run/watchman \
|
||||
# && touch /usr/local/var/run/watchman/.not-empty \
|
||||
# && chmod 2777 /usr/local/var/run/watchman
|
||||
ENTRYPOINT ["./bin/cron-entrypoint"]
|
||||
|
||||
# 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"]
|
||||
|
||||
# Expose the application port
|
||||
EXPOSE 3002
|
||||
|
||||
# Set the default command to run the Rails server
|
||||
CMD ["./bin/dev", "bin/jobs start"]
|
||||
CMD ["./bin/dev", "./bin/jobs start"]
|
||||
|
||||
Reference in New Issue
Block a user