kapllan commited on
Commit
7d4b9a7
·
verified ·
1 Parent(s): 660f9e5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- WORKDIR /app
 
 
 
25
 
26
- # Copy the current directory contents into the container at /app
27
- # COPY . /app
 
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