Selenium2 / Dockerfile
lea97338's picture
Update Dockerfile
4a8f610 verified
Raw
History Blame Contribute Delete
803 Bytes
# ============================
#1. Python Base Image
# ============================
FROM python:3.10-slim
# ============================
#2. Working folder
# ============================
WORKDIR /app
# ============================
#3. Copy requirements.txt
# ============================
COPY requirements.txt .
# =============================
# 4. Install Python dependencies
# ============================
RUN pip install --no-cache-dir -r requirements.txt
# ============================
# 5. Copy your application
# =============================
COPY app.py .
COPY favicon.png .
# =============================
# 6. Expose the Gradio port
# ============================
EXPOSE 7860
# ============================
# 7. Launch your app
# =============================
CMD ["python", "app.py"]