Update Dockerfile
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
|
@@ -21,8 +21,6 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
|
|
| 21 |
|
| 22 |
#RUN apt-get update && apt-get install postgresql-16 postgresql-contrib-16 -y
|
| 23 |
|
| 24 |
-
WORKDIR /app
|
| 25 |
-
|
| 26 |
COPY . .
|
| 27 |
|
| 28 |
# Set up a new user named "user" with user ID 1000
|
|
@@ -39,7 +37,6 @@ ENV PORT=7860
|
|
| 39 |
ENV ORIGINS=*
|
| 40 |
ENV TF_ENABLE_ONEDNN_OPTS=0
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
# Switch to the "user" user
|
| 45 |
USER user
|
|
@@ -51,14 +48,14 @@ ENV HOME=/home/user \
|
|
| 51 |
#RUN export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
|
| 52 |
#RUN export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
|
| 53 |
# Set the working directory to the user's home directory
|
| 54 |
-
|
| 55 |
#RUN chmod -R 755 $HOME/app
|
| 56 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 57 |
-
COPY --chown=user . $HOME
|
| 58 |
|
| 59 |
-
COPY --chown=user . $HOME/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/blobs/*
|
| 60 |
|
| 61 |
-
COPY --chown=user . /home/user/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/*
|
| 62 |
|
| 63 |
RUN python -m pip install --upgrade pip
|
| 64 |
# Install requirements.txt
|
|
|
|
| 21 |
|
| 22 |
#RUN apt-get update && apt-get install postgresql-16 postgresql-contrib-16 -y
|
| 23 |
|
|
|
|
|
|
|
| 24 |
COPY . .
|
| 25 |
|
| 26 |
# Set up a new user named "user" with user ID 1000
|
|
|
|
| 37 |
ENV ORIGINS=*
|
| 38 |
ENV TF_ENABLE_ONEDNN_OPTS=0
|
| 39 |
|
|
|
|
| 40 |
|
| 41 |
# Switch to the "user" user
|
| 42 |
USER user
|
|
|
|
| 48 |
#RUN export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
|
| 49 |
#RUN export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
|
| 50 |
# Set the working directory to the user's home directory
|
| 51 |
+
WORKDIR $HOME/app
|
| 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
|
| 55 |
|
| 56 |
+
#COPY --chown=user . $HOME/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/blobs/*
|
| 57 |
|
| 58 |
+
#COPY --chown=user . /home/user/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/*
|
| 59 |
|
| 60 |
RUN python -m pip install --upgrade pip
|
| 61 |
# Install requirements.txt
|