amaye15 commited on
Commit
87d2ee3
·
1 Parent(s): 2859561
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -137,6 +137,8 @@
137
 
138
  # syntax=docker/dockerfile:1.4
139
 
 
 
140
  ARG TARGETPLATFORM
141
  ARG BUILDPLATFORM
142
 
@@ -150,11 +152,6 @@ FROM python:${PYTHON_VERSION}-slim as base
150
  ARG INSTALL_TYPE=basic
151
  ARG ENABLE_GPU=false
152
 
153
- # Add a non-root user
154
- RUN useradd -m -u 1000 user
155
- USER user
156
- ENV PATH="/home/user/.local/bin:$PATH"
157
-
158
  # Platform-specific labels
159
  LABEL maintainer="unclecode"
160
  LABEL description="🔥🕷️ Crawl4AI: Open-source LLM Friendly Web Crawler & scraper"
@@ -168,7 +165,7 @@ ENV PYTHONUNBUFFERED=1 \
168
  PIP_DEFAULT_TIMEOUT=100 \
169
  DEBIAN_FRONTEND=noninteractive
170
 
171
- # Install system dependencies
172
  RUN apt-get update && apt-get install -y --no-install-recommends \
173
  build-essential \
174
  curl \
@@ -216,6 +213,11 @@ else \
216
  echo "Skipping NVIDIA CUDA Toolkit installation (unsupported platform or GPU disabled)"; \
217
  fi
218
 
 
 
 
 
 
219
  # Create and set working directory
220
  WORKDIR /app
221
 
 
137
 
138
  # syntax=docker/dockerfile:1.4
139
 
140
+ # syntax=docker/dockerfile:1.4
141
+
142
  ARG TARGETPLATFORM
143
  ARG BUILDPLATFORM
144
 
 
152
  ARG INSTALL_TYPE=basic
153
  ARG ENABLE_GPU=false
154
 
 
 
 
 
 
155
  # Platform-specific labels
156
  LABEL maintainer="unclecode"
157
  LABEL description="🔥🕷️ Crawl4AI: Open-source LLM Friendly Web Crawler & scraper"
 
165
  PIP_DEFAULT_TIMEOUT=100 \
166
  DEBIAN_FRONTEND=noninteractive
167
 
168
+ # Install system dependencies as root
169
  RUN apt-get update && apt-get install -y --no-install-recommends \
170
  build-essential \
171
  curl \
 
213
  echo "Skipping NVIDIA CUDA Toolkit installation (unsupported platform or GPU disabled)"; \
214
  fi
215
 
216
+ # Add a non-root user
217
+ RUN useradd -m -u 1000 user
218
+ USER user
219
+ ENV PATH="/home/user/.local/bin:$PATH"
220
+
221
  # Create and set working directory
222
  WORKDIR /app
223