moriire commited on
Commit
513d794
1 Parent(s): 56dc60f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -23,10 +23,6 @@ WORKDIR /app
23
 
24
  COPY . .
25
 
26
- RUN python3 -m pip install --upgrade pip
27
- # Install requirements.txt
28
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
29
-
30
  # Set up a new user named "user" with user ID 1000
31
  RUN useradd -u 1000 user
32
 
@@ -45,8 +41,13 @@ ENV TF_ENABLE_ONEDNN_OPTS=0
45
  USER user
46
  # Set home to the user's home directory
47
  ENV HOME=/home/user \
48
- PATH=/home/user/.local/bin:$PATH/app
49
-
 
 
 
 
 
50
  # Set the working directory to the user's home directory
51
  #WORKDIR $HOME/app
52
  #RUN chmod -R 755 $HOME/app
 
23
 
24
  COPY . .
25
 
 
 
 
 
26
  # Set up a new user named "user" with user ID 1000
27
  RUN useradd -u 1000 user
28
 
 
41
  USER user
42
  # Set home to the user's home directory
43
  ENV HOME=/home/user \
44
+ PATH=/home/user/.local/bin:$PATH/app \
45
+ MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags` \
46
+ MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
47
+
48
+ RUN python3 -m pip install --upgrade pip
49
+ # Install requirements.txt
50
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
51
  # Set the working directory to the user's home directory
52
  #WORKDIR $HOME/app
53
  #RUN chmod -R 755 $HOME/app