Add automated Docker image builds
This commit is contained in:
@@ -59,6 +59,13 @@ RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
|
||||
# Final stage for app image
|
||||
FROM base
|
||||
|
||||
# Image metadata
|
||||
ARG OCI_DESCRIPTION
|
||||
LABEL org.opencontainers.image.description="${OCI_DESCRIPTION}"
|
||||
ARG OCI_SOURCE
|
||||
LABEL org.opencontainers.image.source="${OCI_SOURCE}"
|
||||
LABEL org.opencontainers.image.licenses="O'Saasy"
|
||||
|
||||
# Run and own only the runtime files as a non-root user for security
|
||||
RUN groupadd --system --gid 1000 rails && \
|
||||
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash
|
||||
|
||||
Reference in New Issue
Block a user