moriire commited on
Commit
5f6c7e7
1 Parent(s): cba8f2c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -15,9 +15,9 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
15
  libopenblas-dev \
16
  build-essential
17
 
18
- RUN mkdir /app
19
- WORKDIR /app
20
- COPY . /app
21
 
22
  RUN python3 -m pip install --upgrade pip
23
 
@@ -28,7 +28,7 @@ ENV HOST=0.0.0.0
28
  ENV PORT=7860
29
 
30
  # Install requirements.txt
31
- RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
32
 
33
  # Set up a new user named "user" with user ID 1000
34
  RUN useradd -m -u 1000 user
@@ -42,7 +42,7 @@ ENV HOME=/home/user \
42
  # WORKDIR $HOME/app
43
 
44
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
45
- COPY --chown=user . $HOME/app
46
 
47
  # Start the FastAPI app on port 7860, the default port expected by Spaces
48
  #CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
15
  libopenblas-dev \
16
  build-essential
17
 
18
+ #RUN mkdir /app
19
+ #WORKDIR /app
20
+ COPY . .
21
 
22
  RUN python3 -m pip install --upgrade pip
23
 
 
28
  ENV PORT=7860
29
 
30
  # Install requirements.txt
31
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
32
 
33
  # Set up a new user named "user" with user ID 1000
34
  RUN useradd -m -u 1000 user
 
42
  # WORKDIR $HOME/app
43
 
44
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
45
+ COPY --chown=user . $HOME
46
 
47
  # Start the FastAPI app on port 7860, the default port expected by Spaces
48
  #CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]