testbed / Dockerfile
xspinners's picture
initial
090987a
FROM python:3.9-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV TF_CPP_MIN_LOG_LEVEL=2
# Install dependencies
#RUN apt-get update && apt-get install -y exiftool ffmpeg curl libglib2.0-0 libsm6 libxext6 libxrender-dev
# Install Chrome & dependencies
RUN apt-get update && apt-get install -y \
wget unzip curl gnupg exiftool ffmpeg \
fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 libdbus-1-3 libgdk-pixbuf2.0-0 \
libnspr4 libnss3 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 xdg-utils libu2f-udev libvulkan1 \
chromium chromium-driver \
&& rm -rf /var/lib/apt/lists/*
# Set work directory
WORKDIR /app
# Copy project files
COPY . /app
# Install Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Expose port
EXPOSE 8000
# Run app using Gunicorn
#CMD ["gunicorn", "--bind", "0.0.0.0:8000", "devlab_next.wsgi:application"]
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]