LangApp / Dockerfile
randusertry's picture
Create Dockerfile
304687a verified
raw
history blame contribute delete
301 Bytes
FROM python:3.10
# Install dependencies
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY . .
# Expose the port HF Spaces uses (7860)
EXPOSE 7860
# Run the server on port 7860
CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]