Sithum Sathsara commited on
Commit
105596f
·
1 Parent(s): 7ae7b4c

Add application file

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -1,7 +1,10 @@
1
  FROM python:3.9-slim
 
 
2
  WORKDIR /app
3
- COPY requirements.txt .
4
- RUN pip install --no-cache-dir -r requirements.txt
5
- COPY app.py .
6
- EXPOSE 8080
7
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
 
 
1
  FROM python:3.9-slim
2
+ RUN mkdir -p /home/user/app_cache
3
+
4
  WORKDIR /app
5
+
6
+ COPY --chown=user ./requirements.txt requirements.txt
7
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
+
9
+ COPY --chown=user . /app
10
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]