GPT2PEFTWeather / Dockerfile
Nwtt's picture
change sdk to docker
b58eb26
raw
history blame contribute delete
339 Bytes
FROM python:3.10-slim
# set working directory
WORKDIR /code
# install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# copy app
COPY app.py .
# expose the Hugging Face Spaces default port
EXPOSE 7860
# run FastAPI with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]