arsh1101 commited on
Commit
0f0c87e
·
verified ·
1 Parent(s): ef8aacb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -22
Dockerfile CHANGED
@@ -1,24 +1,6 @@
1
- FROM python:3.9-slim
2
-
3
- # 1) set workdir
4
  WORKDIR /app
5
-
6
- # 2) system deps + cleanup
7
- RUN apt-get update && apt-get install -y --no-install-recommends \
8
- libgl1-mesa-glx libglib2.0-0 \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- COPY app.py /app/app.py
12
- COPY requirements.txt /app/requirements.txt
13
- # (and any other code files / folders)
14
-
15
- # 4) install python deps
16
- RUN pip install --no-cache-dir -r requirements.txt
17
-
18
- # 5) ensure config dir exists
19
- RUN mkdir -p /app/.config/sentinelhub \
20
- && chmod -R 777 /app/.config/sentinelhub
21
-
22
- # 6) expose port and use entrypoint
23
  EXPOSE 8000
24
- ENTRYPOINT ["/app/entrypoint.sh"]
 
1
+ FROM python:3.9
 
 
2
  WORKDIR /app
3
+ COPY . /app
4
+ RUN pip install -r requirements.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  EXPOSE 8000
6
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]