PYAE1994 commited on
Commit
bce76f9
·
verified ·
1 Parent(s): 2940877

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -11
Dockerfile CHANGED
@@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
6
  LC_ALL=C.UTF-8
7
 
8
  # ========================
9
- # Base system dependencies
10
  # ========================
11
  RUN apt-get update && apt-get install -y \
12
  curl git git-lfs wget unzip zip \
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
  # ========================
19
- # OpenVSCode Server (FIXED VERSION - NO latest/download)
20
  # ========================
21
  ARG VSCODE_VERSION=1.99.0
22
 
@@ -34,7 +34,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
34
  npm install -g configurable-http-proxy tsx tslab http-server miniflare@2
35
 
36
  # ========================
37
- # User setup
38
  # ========================
39
  RUN useradd -m user && mkdir -p /home/user/app && chown -R user:user /home/user
40
 
@@ -72,12 +72,12 @@ COPY requirements.txt /home/user/app/
72
  RUN pip install --no-cache-dir -r requirements.txt
73
 
74
  # ========================
75
- # App source code
76
  # ========================
77
  COPY --chown=user . /home/user/app
78
 
79
  # ========================
80
- # Optional browser automation layer
81
  # ========================
82
  RUN pip install playwright && playwright install --with-deps
83
 
@@ -86,12 +86,6 @@ RUN pip install playwright && playwright install --with-deps
86
  # ========================
87
  RUN chmod +x start_server.sh
88
 
89
- # ========================
90
- # Ports
91
- # ========================
92
  EXPOSE 7860 3000
93
 
94
- # ========================
95
- # Start
96
- # ========================
97
  CMD ["./start_server.sh"]
 
6
  LC_ALL=C.UTF-8
7
 
8
  # ========================
9
+ # Base dependencies
10
  # ========================
11
  RUN apt-get update && apt-get install -y \
12
  curl git git-lfs wget unzip zip \
 
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
  # ========================
19
+ # OpenVSCode Server (FIXED - NO latest/download)
20
  # ========================
21
  ARG VSCODE_VERSION=1.99.0
22
 
 
34
  npm install -g configurable-http-proxy tsx tslab http-server miniflare@2
35
 
36
  # ========================
37
+ # User setup (clean)
38
  # ========================
39
  RUN useradd -m user && mkdir -p /home/user/app && chown -R user:user /home/user
40
 
 
72
  RUN pip install --no-cache-dir -r requirements.txt
73
 
74
  # ========================
75
+ # APP SOURCE (ONLY ONE COPY - FIXED)
76
  # ========================
77
  COPY --chown=user . /home/user/app
78
 
79
  # ========================
80
+ # Playwright (optional)
81
  # ========================
82
  RUN pip install playwright && playwright install --with-deps
83
 
 
86
  # ========================
87
  RUN chmod +x start_server.sh
88
 
 
 
 
89
  EXPOSE 7860 3000
90
 
 
 
 
91
  CMD ["./start_server.sh"]