Sharathhebbar24 commited on
Commit
48f376b
·
verified ·
1 Parent(s): 0b613ac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -13
Dockerfile CHANGED
@@ -1,13 +1,15 @@
1
- FROM python:3.11
2
-
3
- WORKDIR /
4
-
5
- COPY ./requirements.txt /requirements.txt
6
- RUN apt-get update && apt-get install -y build-essential libpq-dev \
7
- && python -m pip install --upgrade pip \
8
- && pip install --no-cache-dir -r /requirements.txt
9
-
10
-
11
- COPY ./ /
12
-
13
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
 
 
 
1
+ FROM python:3.11
2
+
3
+ WORKDIR /
4
+
5
+ COPY ./requirements.txt /requirements.txt
6
+ RUN apt-get update && apt-get install -y build-essential libpq-dev \
7
+ && python -m pip install --upgrade pip \
8
+ && pip install --no-cache-dir -r /requirements.txt
9
+
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
+ COPY ./ /
14
+
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]