vroy02243 commited on
Commit
22024b9
·
verified ·
1 Parent(s): f72d075

Upload DockerFile

Browse files
Files changed (1) hide show
  1. DockerFile +6 -2
DockerFile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.12.0
2
 
3
  # define the dictionary path
4
  WORKDIR /code
@@ -8,8 +8,12 @@ COPY ./requirements.txt /code/requirements.txt
8
  # install the requirements package
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
 
 
 
 
 
11
  ENV HOME=/home/user \
12
- PATH=/home/user/.local/bin:$path
13
 
14
  WORKDIR $HOME/app
15
 
 
1
+ FROM python:3.12
2
 
3
  # define the dictionary path
4
  WORKDIR /code
 
8
  # install the requirements package
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
 
11
+ RUN useradd user
12
+
13
+ USER user
14
+
15
  ENV HOME=/home/user \
16
+ PATH=/home/user/.local/bin:$PATH
17
 
18
  WORKDIR $HOME/app
19