Spaces:
Sleeping
Sleeping
- Dockerfile +8 -3
Dockerfile
CHANGED
@@ -11,9 +11,14 @@ RUN apt-get update && apt-get install -y \
|
|
11 |
imagemagick \
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
17 |
RUN echo $(ls -1 .. )
|
18 |
|
19 |
RUN pip3 install -r requirements.txt
|
|
|
11 |
imagemagick \
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
14 |
+
RUN useradd -m -u 1000 user
|
15 |
+
USER user
|
16 |
+
ENV HOME=/home/user \
|
17 |
+
PATH=/home/user/.local/bin:$PATH
|
18 |
+
|
19 |
+
WORKDIR $HOME/moulinette
|
20 |
+
RUN mkdir $HOME/moulinette/images
|
21 |
+
COPY --chown=user . $HOME/moulinette
|
22 |
RUN echo $(ls -1 .. )
|
23 |
|
24 |
RUN pip3 install -r requirements.txt
|