jjhoffstein commited on
Commit
3eafa05
·
verified ·
1 Parent(s): 80dfc42

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,8 +1,9 @@
1
  FROM python:3.11-slim
2
  WORKDIR /app
3
- COPY requirements.txt .
4
- # Upgrade pip and then install, specifying the index URL to bypass potential DNS/mirror issues.
5
  RUN pip install --upgrade pip && \
6
- pip install --no-cache-dir --index-url https://pypi.org/simple/ -r requirements.txt
7
- COPY file.py .
8
  CMD ["python", "file.py"]
 
 
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
+