Rivalcoder commited on
Commit
df0dd91
·
1 Parent(s): 185fe78
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -1,12 +1,17 @@
1
  FROM python:3.10
2
 
 
3
  WORKDIR /app
 
4
 
 
5
  COPY requirements.txt requirements.txt
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
 
10
  EXPOSE 7860
11
 
 
12
  CMD ["python", "app.py"]
 
1
  FROM python:3.10
2
 
3
+ # Create working directory and give write permissions
4
  WORKDIR /app
5
+ RUN mkdir -p /app/mongo_exports && chmod 777 /app/mongo_exports
6
 
7
+ # Copy files into container
8
  COPY requirements.txt requirements.txt
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  COPY . .
12
 
13
+ # Expose the Hugging Face default port
14
  EXPOSE 7860
15
 
16
+ # Run your FastAPI app
17
  CMD ["python", "app.py"]