moriire commited on
Commit
7a3a7b5
1 Parent(s): 1a40879

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
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
- COPY . .
25
-
26
  # Set up a new user named "user" with user ID 1000
27
  RUN useradd -u 1001 user
28
 
@@ -48,7 +46,7 @@ ENV HOME=/home/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
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
@@ -57,6 +55,8 @@ COPY --chown=user . $HOME/app
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
62
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
21
 
22
  #RUN apt-get update && apt-get install postgresql-16 postgresql-contrib-16 -y
23
 
 
 
24
  # Set up a new user named "user" with user ID 1000
25
  RUN useradd -u 1001 user
26
 
 
46
  #RUN export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
47
  #RUN export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
48
  # Set the working directory to the user's home directory
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
 
55
 
56
  #COPY --chown=user . /home/user/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/*
57
 
58
+ COPY . .
59
+
60
  RUN python -m pip install --upgrade pip
61
  # Install requirements.txt
62
  RUN pip install --no-cache-dir --upgrade -r requirements.txt