Skip to content

Commit

Permalink
docs: Updated reason for chmod in Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrasekharan-zipstack committed Feb 13, 2025
1 parent 9aadbd7 commit 3569bc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/dockerfiles/platform.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ RUN pdm venv create -w virtualenv --with-pip && \
opentelemetry-distro opentelemetry-exporter-otlp && \
opentelemetry-bootstrap -a install

# Read and execute access to non-root user to avoid security hotspot
# Write access to specific sub-directory need to be explicitly provided if required
COPY --chmod=755 ${BUILD_CONTEXT_PATH} /app/
# Copy local dependency packages
COPY --chown=unstract ${BUILD_PACKAGES_PATH} /unstract
Expand Down
2 changes: 2 additions & 0 deletions docker/dockerfiles/prompt.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ RUN pdm venv create -w virtualenv --with-pip && \
opentelemetry-distro opentelemetry-exporter-otlp && \
opentelemetry-bootstrap -a install

# Read and execute access to non-root user to avoid security hotspot
# Write access to specific sub-directory need to be explicitly provided if required
COPY --chmod=755 ${BUILD_CONTEXT_PATH} /app/
# Copy local dependencies
COPY --chown=unstract ${BUILD_PACKAGES_PATH}/core /unstract/core
Expand Down
2 changes: 2 additions & 0 deletions docker/dockerfiles/x2text.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ RUN pdm venv create -w virtualenv --with-pip && \
opentelemetry-distro opentelemetry-exporter-otlp && \
opentelemetry-bootstrap -a install

# Read and execute access to non-root user to avoid security hotspot
# Write access to specific sub-directory need to be explicitly provided if required
COPY --chmod=755 ${BUILD_CONTEXT_PATH} /app/

# Install dependencies
Expand Down

0 comments on commit 3569bc9

Please sign in to comment.