Arts-of-coding
commited on
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -28,6 +28,10 @@ RUN apt-get update \
|
|
28 |
&& apt-get install -y --no-install-recommends fuse blobfuse libcurl3-gnutls libgnutls30 \
|
29 |
&& rm -rf /var/lib/apt/lists/*
|
30 |
|
|
|
|
|
|
|
|
|
31 |
COPY mount-blobfuse.sh /
|
32 |
RUN chmod +x /mount-blobfuse.sh
|
33 |
#COPY --from=compiler /opt/venv/bin/activate /usr/local/bin/activate_venv
|
@@ -52,6 +56,8 @@ COPY ./main.py ./
|
|
52 |
RUN mkdir -p /app/azure
|
53 |
RUN chmod 777 /app/azure
|
54 |
|
|
|
|
|
55 |
# How the docker app will run
|
56 |
ENTRYPOINT ["/bin/bash", "-c", "/mount-blobfuse.sh; exec $SHELL"]
|
57 |
|
|
|
28 |
&& apt-get install -y --no-install-recommends fuse blobfuse libcurl3-gnutls libgnutls30 \
|
29 |
&& rm -rf /var/lib/apt/lists/*
|
30 |
|
31 |
+
RUN useradd -m -u 1000 user
|
32 |
+
USER user
|
33 |
+
RUN chown -R user:user /
|
34 |
+
|
35 |
COPY mount-blobfuse.sh /
|
36 |
RUN chmod +x /mount-blobfuse.sh
|
37 |
#COPY --from=compiler /opt/venv/bin/activate /usr/local/bin/activate_venv
|
|
|
56 |
RUN mkdir -p /app/azure
|
57 |
RUN chmod 777 /app/azure
|
58 |
|
59 |
+
COPY --chown=user:user . /
|
60 |
+
|
61 |
# How the docker app will run
|
62 |
ENTRYPOINT ["/bin/bash", "-c", "/mount-blobfuse.sh; exec $SHELL"]
|
63 |
|