passport / Dockerfile
thuralinhtut's picture
docker
5fcf143
raw
history blame
740 Bytes
# Use an official Python runtime as the base image
FROM python:3.10
# Set environment variables
ENV NUMBA_DISABLE_JIT=1
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /app
# Install OpenCV dependencies
RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 libxrender-dev libgl1-mesa-glx
# Copy the requirements file to the working directory
COPY requirements.txt .
# Install project dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the project code to the working directory
COPY . .
# Expose the port your Django app will run on
EXPOSE 8000
# Run the Django development server
CMD ["python", "manage.py", "runserver", "10.19.167.85:8000"]