Update Dockerfile
Browse files- Dockerfile +5 -8
Dockerfile
CHANGED
|
@@ -11,17 +11,14 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
# 2. Upgrade pip to the absolute latest version
|
| 12 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
| 13 |
|
| 14 |
-
# 3. Install Python packages
|
| 15 |
-
RUN pip install --no-cache-dir fastapi uvicorn python-dotenv aiofiles litellm playwright
|
| 16 |
|
| 17 |
-
# 4.
|
| 18 |
-
RUN python -c "open('/usr/local/lib/python3.11/site-packages/cmdop/exceptions.py', 'a').write('\nTimeoutError = TimeoutError\n')"
|
| 19 |
-
|
| 20 |
-
# 5. Install Playwright OS dependencies AS ROOT
|
| 21 |
RUN playwright install chromium
|
| 22 |
RUN playwright install-deps chromium
|
| 23 |
|
| 24 |
-
#
|
| 25 |
RUN useradd -m -u 1000 user
|
| 26 |
USER user
|
| 27 |
ENV HOME=/home/user \
|
|
@@ -31,7 +28,7 @@ ENV HOME=/home/user \
|
|
| 31 |
WORKDIR $HOME/app
|
| 32 |
RUN mkdir -p $HOME/app/static
|
| 33 |
|
| 34 |
-
#
|
| 35 |
COPY --chown=user . .
|
| 36 |
|
| 37 |
EXPOSE 7860
|
|
|
|
| 11 |
# 2. Upgrade pip to the absolute latest version
|
| 12 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
| 13 |
|
| 14 |
+
# 3. Install core Python packages (Skipping openclaw entirely)
|
| 15 |
+
RUN pip install --no-cache-dir fastapi uvicorn python-dotenv aiofiles litellm playwright
|
| 16 |
|
| 17 |
+
# 4. Install Playwright OS dependencies AS ROOT
|
|
|
|
|
|
|
|
|
|
| 18 |
RUN playwright install chromium
|
| 19 |
RUN playwright install-deps chromium
|
| 20 |
|
| 21 |
+
# 5. Switch to the required Hugging Face user
|
| 22 |
RUN useradd -m -u 1000 user
|
| 23 |
USER user
|
| 24 |
ENV HOME=/home/user \
|
|
|
|
| 28 |
WORKDIR $HOME/app
|
| 29 |
RUN mkdir -p $HOME/app/static
|
| 30 |
|
| 31 |
+
# 6. Copy the Python code and give ownership
|
| 32 |
COPY --chown=user . .
|
| 33 |
|
| 34 |
EXPOSE 7860
|