From bbad7629ccb6c5143ad1721133960579f68ccc16 Mon Sep 17 00:00:00 2001 From: Tristan Dunn Date: Wed, 8 Jan 2025 22:44:25 -0500 Subject: [PATCH] Remove application-specific user. --- Dockerfile | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index c83a954..03495ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,14 +55,6 @@ FROM base AS application COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}" COPY --from=build /rails /rails -# Create an application-specific user. -RUN addgroup --system rails \ - && adduser -G rails --system rails \ - && chown -R rails:rails db log storage tmp - -# Switch to the user. -USER rails:rails - # Set a custom entrypoint. ENTRYPOINT ["bin/docker-entrypoint"]