qdqd commited on
Commit
80c1cd0
·
verified ·
1 Parent(s): e3722cf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -5
Dockerfile CHANGED
@@ -1,6 +1,4 @@
1
  FROM python:3.9-slim
2
-
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  gcc \
6
  python3-dev \
@@ -16,17 +14,16 @@ RUN apt-get update && apt-get install -y \
16
 
17
  WORKDIR /app
18
 
19
- # Download application files
20
  RUN mkdir -p templates && \
21
  curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/api.py -o api.py && \
22
  curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/requirements.txt -o requirements.txt && \
23
  curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/index.html -o templates/index.html
24
 
25
- # Install Python dependencies
26
  RUN pip install --no-cache-dir -r requirements.txt
27
  RUN pip install flask
28
 
29
- # Configure environment
30
  ENV PLAYWRIGHT_BROWSERS_PATH=/home/user/.cache/ms-playwright \
31
  PYTHONUNBUFFERED=1
32
 
 
1
  FROM python:3.9-slim
 
 
2
  RUN apt-get update && apt-get install -y \
3
  gcc \
4
  python3-dev \
 
14
 
15
  WORKDIR /app
16
 
 
17
  RUN mkdir -p templates && \
18
  curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/api.py -o api.py && \
19
  curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/requirements.txt -o requirements.txt && \
20
  curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/index.html -o templates/index.html
21
 
22
+
23
  RUN pip install --no-cache-dir -r requirements.txt
24
  RUN pip install flask
25
 
26
+
27
  ENV PLAYWRIGHT_BROWSERS_PATH=/home/user/.cache/ms-playwright \
28
  PYTHONUNBUFFERED=1
29