Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -40,14 +40,15 @@ ENV TF_ENABLE_ONEDNN_OPTS=0
|
|
40 |
# Switch to the "user" user
|
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
|
|
|
40 |
# Switch to the "user" user
|
41 |
USER user
|
42 |
# Set home to the user's home directory
|
|
|
|
|
|
|
|
|
43 |
|
44 |
RUN python3 -m pip install --upgrade pip
|
45 |
# Install requirements.txt
|
46 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
47 |
+
|
48 |
+
ENV HOME=/home/user \
|
49 |
+
PATH=/home/user/.local/bin:$PATH/app \
|
50 |
+
MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags` \
|
51 |
+
MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
|
52 |
# Set the working directory to the user's home directory
|
53 |
#WORKDIR $HOME/app
|
54 |
#RUN chmod -R 755 $HOME/app
|