fix docker build process
This commit is contained in:
parent
88686bad08
commit
41461460e6
2 changed files with 4 additions and 1 deletions
|
|
@ -49,3 +49,6 @@
|
||||||
# Ignore Docker-related files
|
# Ignore Docker-related files
|
||||||
/.dockerignore
|
/.dockerignore
|
||||||
/Dockerfile*
|
/Dockerfile*
|
||||||
|
|
||||||
|
# Ignore test screenshots
|
||||||
|
/public/shrine
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ COPY --from=build /rails /rails
|
||||||
# Run and own only the runtime files as a non-root user for security
|
# Run and own only the runtime files as a non-root user for security
|
||||||
RUN groupadd --system --gid 1000 rails && \
|
RUN groupadd --system --gid 1000 rails && \
|
||||||
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
|
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
|
||||||
chown -R rails:rails db log storage tmp
|
chown -R rails:rails db log tmp
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
|
|
||||||
# Entrypoint prepares the database.
|
# Entrypoint prepares the database.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue