gaze_test / web /Dockerfile
Olof Astrand
Added web inference option
47bec77
raw
history blame contribute delete
587 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1 \
libglib2.0-0 \
libgl1-mesa-glx \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY gaze_server.py .
COPY best_gaze_model.h5 .
# Expose port
EXPOSE 5000
# Run the server
CMD ["python", "gaze_server.py", "--host", "0.0.0.0", "--port", "5000"]