thrinadhn commited on
Commit
0bc9299
·
verified ·
1 Parent(s): 9b2860c

Update Dockerfile.txt

Browse files
Files changed (1) hide show
  1. Dockerfile.txt +31 -28
Dockerfile.txt CHANGED
@@ -1,28 +1,31 @@
1
- # use the following image python 3.9
2
- FROM python:3.9
3
- # set the working directory to /code
4
- WORKDIR /code
5
-
6
- ## copy the current directory contents in the container at /code
7
- COPY ./requirements.txt /code/requirements.txt
8
-
9
- # install the requirements.txt
10
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
-
12
- #set up a new user named "user"
13
- RUN useradd user
14
- # switch to the "user" user
15
- USER user
16
-
17
- ENV HOME = /home/user \
18
- PATH = /home/user/.local/bin:$PATH
19
-
20
- # set the working directory to the user's home directory
21
- WORKDIR $HOME/app
22
-
23
- # copy the current directory contents into the container at $HOME/app setting the owner to
24
- COPY --chown=user .$HOME/app
25
-
26
-
27
- # start the FASTAPI App on port 7860
28
- CMD ["uvicorn","app.app","--host","0.0.0.0","--port",7860]
 
 
 
 
1
+ GROQ_API_KEY = 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
2
+ GOOGLE_API_KEY = AIzaSyDQYGScJvmsLlJjsrbcCzHh1AlhhIWOfP8
3
+ TAVILY_API_KEY = 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
4
+ # use the following image python 3.9
5
+ FROM python:3.9
6
+ # set the working directory to /code
7
+ WORKDIR /code
8
+
9
+ ## copy the current directory contents in the container at /code
10
+ COPY ./requirements.txt /code/requirements.txt
11
+
12
+ # install the requirements.txt
13
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
+
15
+ #set up a new user named "user"
16
+ RUN useradd user
17
+ # switch to the "user" user
18
+ USER user
19
+
20
+ ENV HOME = /home/user \
21
+ PATH = /home/user/.local/bin:$PATH
22
+
23
+ # set the working directory to the user's home directory
24
+ WORKDIR $HOME/app
25
+
26
+ # copy the current directory contents into the container at $HOME/app setting the owner to
27
+ COPY --chown=user .$HOME/app
28
+
29
+
30
+ # start the FASTAPI App on port 7860
31
+ CMD ["uvicorn","app.app","--host","0.0.0.0","--port",7860]