jzou19950715 commited on
Commit
03b8b64
·
verified ·
1 Parent(s): 2e831c5

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -43
Dockerfile DELETED
@@ -1,43 +0,0 @@
1
- # Use Python 3.10 slim image
2
- FROM python:3.10-slim
3
-
4
- # Set up working directory
5
- WORKDIR /code
6
-
7
- # Install system dependencies
8
- RUN apt-get update && apt-get install -y \
9
- wget \
10
- gnupg \
11
- && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
12
- && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \
13
- && apt-get update \
14
- && apt-get install -y \
15
- google-chrome-stable \
16
- xvfb \
17
- && rm -rf /var/lib/apt/lists/*
18
-
19
- # Copy just requirements first (better caching)
20
- COPY requirements.txt /code/requirements.txt
21
-
22
- # Install Python dependencies
23
- RUN pip install --no-cache-dir --upgrade pip && \
24
- pip install --no-cache-dir -r requirements.txt
25
-
26
- # Install Playwright browser
27
- RUN playwright install chromium && \
28
- playwright install-deps
29
-
30
- # Copy the rest of the code
31
- COPY . /code
32
-
33
- # Set environment variables
34
- ENV PYTHONUNBUFFERED=1
35
- ENV GRADIO_SERVER_NAME=0.0.0.0
36
- ENV GRADIO_SERVER_PORT=7860
37
-
38
- # Expose port
39
- EXPOSE 7860
40
-
41
- # Start virtual display and run app
42
- CMD Xvfb :99 -screen 0 1024x768x16 & \
43
- DISPLAY=:99 python app.py