Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -35,6 +35,9 @@ ENV PORT=7860
|
|
| 35 |
ENV ORIGINS=*
|
| 36 |
ENV TF_ENABLE_ONEDNN_OPTS=0
|
| 37 |
|
|
|
|
|
|
|
|
|
|
| 38 |
RUN chown user:user -R .
|
| 39 |
# Switch to the "user" user
|
| 40 |
USER user
|
|
@@ -45,8 +48,7 @@ ENV HOME=/home/user \
|
|
| 45 |
|
| 46 |
#RUN export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
|
| 47 |
#RUN export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
|
| 48 |
-
|
| 49 |
-
WORKDIR $HOME/app
|
| 50 |
#RUN chmod -R 755 $HOME/app
|
| 51 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 52 |
COPY --chown=user . $HOME/app
|
|
|
|
| 35 |
ENV ORIGINS=*
|
| 36 |
ENV TF_ENABLE_ONEDNN_OPTS=0
|
| 37 |
|
| 38 |
+
# Set the working directory to the user's home directory
|
| 39 |
+
WORKDIR $HOME/app
|
| 40 |
+
|
| 41 |
RUN chown user:user -R .
|
| 42 |
# Switch to the "user" user
|
| 43 |
USER user
|
|
|
|
| 48 |
|
| 49 |
#RUN export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
|
| 50 |
#RUN export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
|
| 51 |
+
|
|
|
|
| 52 |
#RUN chmod -R 755 $HOME/app
|
| 53 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 54 |
COPY --chown=user . $HOME/app
|