Skip to content

Commit

Permalink
make sure user owns /opt/conda
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand committed Oct 16, 2023
1 parent 7f60382 commit 2b431cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conda-store-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ FROM --platform=linux/amd64 condaforge/mambaforge:23.3.1-1 as prod
# Copy the conda environment from the builder stage
COPY --from=builder /opt/conda /opt/conda

RUN --mount=type=cache,target=/var/lib/apt --mount=type=cache,target=/var/cache/apt apt install -y --no-install-recommends curl
RUN --mount=type=cache,target=/var/lib/apt --mount=type=cache,target=/var/cache/apt \
apt install -y --no-install-recommends curl && \
chown -R 1000:1000 /opt/conda

LABEL org.opencontainers.image.authors="conda-store development team"
USER 1000:1000
Expand Down

0 comments on commit 2b431cb

Please sign in to comment.