Skip to content

Commit cddd8ae

Browse files
author
patched.codes[bot]
committed
Patched: "/tmp/tmp7rhy90_n/docker/macosm1-image/Dockerfile"
1 parent f65ae32 commit cddd8ae

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

docker/macosm1-image/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND=noninteractive
88
# Blocking module requirement to avoid using sudo
99
ENV IS_IN_A_DOCKER_CONTAINER True
1010

11-
# destionation dir for slips inside the container
11+
# destination dir for slips inside the container
1212
ENV SLIPS_DIR /StratosphereLinuxIPS
1313

1414
# Install wget and add Zeek repository to our sources.
@@ -68,5 +68,9 @@ RUN npm install
6868
# Switch to Slips installation dir when login.
6969
WORKDIR ${SLIPS_DIR}
7070

71-
#CMD redis-server --daemonize yes && /bin/bash
72-
CMD /bin/bash
71+
# Use a non-root user to run the container
72+
RUN useradd -m -s /bin/bash slipsuser
73+
RUN chown -R slipsuser:slipsuser ${SLIPS_DIR}
74+
USER slipsuser
75+
76+
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)