Its been a while
This commit is contained in:
+3
-3
@@ -9,7 +9,7 @@ ARG RUBY_VERSION=3.3.1
|
||||
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
|
||||
|
||||
# Rails app lives here
|
||||
WORKDIR /rails
|
||||
WORKDIR app
|
||||
|
||||
# Install base packages
|
||||
RUN apt-get update -qq && \
|
||||
@@ -50,7 +50,7 @@ FROM base
|
||||
|
||||
# Copy built artifacts: gems, application
|
||||
COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
|
||||
COPY --from=build /rails /rails
|
||||
COPY --from=build /app /app
|
||||
|
||||
# Run and own only the runtime files as a non-root user for security
|
||||
RUN groupadd --system --gid 1000 rails && \
|
||||
@@ -59,7 +59,7 @@ RUN groupadd --system --gid 1000 rails && \
|
||||
USER 1000:1000
|
||||
|
||||
# Entrypoint prepares the database.
|
||||
ENTRYPOINT ["/rails/bin/docker-entrypoint"]
|
||||
ENTRYPOINT ["/app/bin/docker-entrypoint"]
|
||||
|
||||
# Start the server by default, this can be overwritten at runtime
|
||||
EXPOSE 3000
|
||||
|
||||
Reference in New Issue
Block a user