File size: 566 Bytes
6b940c7
 
052b6b0
6b940c7
 
052b6b0
6b940c7
 
 
052b6b0
6b940c7
 
052b6b0
6b940c7
 
 
052b6b0
6b940c7
052b6b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use Python 3.10
FROM python:3.10

# Set working directory
WORKDIR /code

# Copy requirements and install
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Create the data directory and set permissions (Crucial for writing feedback.jsonl)
RUN mkdir -p /code/data && chmod 777 /code/data

# Copy the application code
# FIX: We copy 'app.py' specifically, correcting your build error
COPY ./app.py /code/app.py

# Run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]