LiveTranslation / Dockerfile
pranit144's picture
Upload 6 files
4f3952b verified
raw
history blame contribute delete
320 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create directory structure
RUN mkdir -p static/images
# Expose the port the app runs on
EXPOSE 7860
# Command to run the app
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]