File size: 379 Bytes
aeb70ab
 
df0dd91
aeb70ab
df0dd91
aeb70ab
df0dd91
aeb70ab
 
 
 
 
df0dd91
aeb70ab
 
df0dd91
aeb70ab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.10

# Create working directory and give write permissions
WORKDIR /app
RUN mkdir -p /app/mongo_exports && chmod 777 /app/mongo_exports

# Copy files into container
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Expose the Hugging Face default port
EXPOSE 7860

# Run your FastAPI app
CMD ["python", "app.py"]