eonslight commited on
Commit
e2fa00a
·
verified ·
1 Parent(s): 5704e00

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -22
Dockerfile CHANGED
@@ -1,23 +1,23 @@
1
- # use the official Python image as the base image
2
- FROM python:3.9
3
-
4
- # set the working directory in the container
5
- WORKDIR /app
6
-
7
- # set up as a user
8
- RUN useradd -m -u 1000 user
9
- USER user
10
- ENV HOME=/home/user
11
- PATH=/home/user/.local/bin:$PATH
12
-
13
- # copy requirements file into the container
14
- COPY --chown=user ./requirements.txt requirements.txt
15
-
16
- # install the dependencies
17
- RUN pip install --user --no-cache-dir -r requirements.txt
18
-
19
- # copy rest of application code
20
- COPY --chown=user . .
21
-
22
- # start the app on port 7860
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # use the official Python image as the base image
2
+ FROM python:3.9
3
+
4
+ # set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # set up as a user
8
+ RUN useradd -m -u 1000 user
9
+ USER user
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
+ # copy requirements file into the container
14
+ COPY --chown=user ./requirements.txt requirements.txt
15
+
16
+ # install the dependencies
17
+ RUN pip install --user --no-cache-dir -r requirements.txt
18
+
19
+ # copy rest of application code
20
+ COPY --chown=user . .
21
+
22
+ # start the app on port 7860
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]