Skip to content

Commit c28b67f

Browse files
committed
Default to non-root user
1 parent ec6f9b5 commit c28b67f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ RUN echo "**** install dev packages ****" && \
7474
\
7575
echo "**** finalize ****" && \
7676
mkdir -p "$CONDA_DIR/locks" && \
77-
chmod 777 "$CONDA_DIR/locks"
77+
chmod 777 "$CONDA_DIR/locks" && \
78+
useradd -ms /bin/bash conda
79+
80+
USER conda
7881

7982
COPY entrypoint /opt/docker/bin/entrypoint
8083
RUN mkdir -p conda_forge_webservices

0 commit comments

Comments
 (0)