vishnu110 commited on
Commit
df85643
·
verified ·
1 Parent(s): d8e53a4

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -44
Dockerfile DELETED
@@ -1,44 +0,0 @@
1
- ### Use the official Python 3.10 image
2
-
3
- FROM python:3.10
4
-
5
- ## set the working direct to /code
6
-
7
- WORKDIR /code
8
-
9
-
10
- ## Copy the current directoy contents in the container at /code
11
-
12
- COPY ./requirements.txt /code/requirements.txt
13
-
14
- # Install the requirements.txt
15
-
16
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
17
-
18
-
19
- ## Set up a new user named 'user'
20
- RUN useradd user
21
-
22
- ## Switch to the "user" user
23
-
24
- USER user
25
-
26
-
27
- # Set home to the user's home directory
28
-
29
- ENV HOME =/home/user \
30
- PATH =/home/user/.local/bin:$PATH
31
-
32
-
33
- # SET THE WORKING DIRECTORY TO THE USER'S HOME DIRECTORY
34
-
35
- WORKDIR $HOME/app
36
-
37
- ## Copy the curent direcotry contents into the conainer at $HOME/app setting the owner to
38
-
39
- COPY --chown=user . $HOME/app
40
-
41
-
42
- ## start the fast api app on port 7680
43
-
44
- CMD [ "uvicorn", "app:app","--host","0.0.0.0","--port",'7860']