Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -21,10 +21,14 @@ RUN git clone https://github.com/kapllan/SmartOpinion.git /app
|
|
21 |
|
22 |
|
23 |
# Set the working directory in the container
|
24 |
-
|
|
|
|
|
|
|
25 |
|
26 |
-
|
27 |
-
|
|
|
28 |
|
29 |
# Install any dependencies specified in requirements.txt
|
30 |
RUN pip install poetry
|
|
|
21 |
|
22 |
|
23 |
# Set the working directory in the container
|
24 |
+
RUN useradd -m -u 1000 user
|
25 |
+
USER user
|
26 |
+
ENV HOME=/home/user \
|
27 |
+
PATH=/home/user/.local/bin:$PATH
|
28 |
|
29 |
+
WORKDIR $HOME/app
|
30 |
+
|
31 |
+
COPY --chown=user . $HOME/app
|
32 |
|
33 |
# Install any dependencies specified in requirements.txt
|
34 |
RUN pip install poetry
|