PYAE1994 commited on
Commit
0674e7e
·
verified ·
1 Parent(s): ce17c2d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -9
Dockerfile CHANGED
@@ -7,7 +7,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
7
  PYTHONUNBUFFERED=1
8
 
9
  # ========================
10
- # Base dependencies (stable minimal set)
11
  # ========================
12
  RUN apt-get update && apt-get install -y \
13
  curl git git-lfs wget unzip zip \
@@ -17,17 +17,15 @@ RUN apt-get update && apt-get install -y \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  # ========================
20
- # OpenVSCode Server (HARDENED)
21
  # ========================
22
  ARG VSCODE_VERSION=1.99.0
23
 
24
  RUN mkdir -p /app/openvscode-server && \
25
  curl -L -o /tmp/openvscode.tar.gz \
26
  https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v${VSCODE_VERSION}/openvscode-server-v${VSCODE_VERSION}-linux-x64.tar.gz && \
27
- file /tmp/openvscode.tar.gz && \
28
- test "$(file /tmp/openvscode.tar.gz | grep -i gzip)" || (echo "❌ Invalid VSCode download" && exit 1) && \
29
  tar -xzf /tmp/openvscode.tar.gz -C /app/openvscode-server --strip-components=1 && \
30
- rm /tmp/openvscode.tar.gz
31
 
32
  # ========================
33
  # Node.js tools
@@ -37,7 +35,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
37
  npm install -g configurable-http-proxy tsx tslab http-server miniflare@2
38
 
39
  # ========================
40
- # User setup (clean & safe)
41
  # ========================
42
  RUN useradd -m user && \
43
  mkdir -p /home/user/app && \
@@ -58,7 +56,7 @@ RUN curl -sLo ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-py31
58
  rm ~/miniconda.sh
59
 
60
  # ========================
61
- # Root scripts
62
  # ========================
63
  USER root
64
 
@@ -77,12 +75,17 @@ COPY requirements.txt /home/user/app/
77
  RUN pip install --no-cache-dir -r requirements.txt
78
 
79
  # ========================
80
- # App source (IMPORTANT FIXED ORDER)
 
 
 
 
 
81
  # ========================
82
  COPY --chown=user . /home/user/app
83
 
84
  # ========================
85
- # Playwright (optional but stable)
86
  # ========================
87
  RUN pip install playwright && playwright install --with-deps
88
 
 
7
  PYTHONUNBUFFERED=1
8
 
9
  # ========================
10
+ # Base dependencies
11
  # ========================
12
  RUN apt-get update && apt-get install -y \
13
  curl git git-lfs wget unzip zip \
 
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  # ========================
20
+ # OpenVSCode Server (FIXED STABLE DOWNLOAD)
21
  # ========================
22
  ARG VSCODE_VERSION=1.99.0
23
 
24
  RUN mkdir -p /app/openvscode-server && \
25
  curl -L -o /tmp/openvscode.tar.gz \
26
  https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v${VSCODE_VERSION}/openvscode-server-v${VSCODE_VERSION}-linux-x64.tar.gz && \
 
 
27
  tar -xzf /tmp/openvscode.tar.gz -C /app/openvscode-server --strip-components=1 && \
28
+ rm -f /tmp/openvscode.tar.gz
29
 
30
  # ========================
31
  # Node.js tools
 
35
  npm install -g configurable-http-proxy tsx tslab http-server miniflare@2
36
 
37
  # ========================
38
+ # User setup
39
  # ========================
40
  RUN useradd -m user && \
41
  mkdir -p /home/user/app && \
 
56
  rm ~/miniconda.sh
57
 
58
  # ========================
59
+ # Root scripts (HF safe mount style optional)
60
  # ========================
61
  USER root
62
 
 
75
  RUN pip install --no-cache-dir -r requirements.txt
76
 
77
  # ========================
78
+ # AI AGENT LAYER (FIXED - NOT REMOVED)
79
+ # ========================
80
+ COPY --chown=user agent/ /home/user/app/agent/
81
+
82
+ # ========================
83
+ # FULL APP SOURCE
84
  # ========================
85
  COPY --chown=user . /home/user/app
86
 
87
  # ========================
88
+ # Playwright (optional)
89
  # ========================
90
  RUN pip install playwright && playwright install --with-deps
91