github-repo2file / Dockerfile
rodrigomasini's picture
Create Dockerfile
ad2e70e verified
raw
history blame
287 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# We need to make port 8080 available since HuggingFace Spaces uses this port to expose the app
EXPOSE 8080
ENV NICEGUI_NATIVE=false
CMD ["python", "main.py"]```