froggy-backend / Dockerfile
golovchits's picture
Update Dockerfile
0112e8b
Raw
History Blame Contribute Delete
330 Bytes
FROM python:3.10-slim
ENV PORT=7860
ENV TOGETHER_API_KEY=""
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 7860
CMD ["python", "app.py"]
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]