jjhoffstein commited on
Commit
aa027d5
·
verified ·
1 Parent(s): 8b3a6f7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -1,9 +1,6 @@
1
  FROM python:3.11-slim
2
  WORKDIR /app
3
- # Upgrade pip and then install packages directly, specifying the index URL.
4
- # This bypasses any potential issues with reading/parsing the requirements.txt file.
5
- RUN pip install --upgrade pip && \
6
- pip install --no-cache-dir --index-url https://pypi.org/simple/ fasthtml monsterui
7
- COPY . .
8
- CMD ["python", "file.py"]
9
-
 
1
  FROM python:3.11-slim
2
  WORKDIR /app
3
+ COPY requirements.txt .
4
+ RUN pip install --no-cache-dir -r requirements.txt
5
+ COPY file.py .
6
+ CMD ["python", "file.py"]