Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
|
@@ -45,7 +45,7 @@ WORKDIR /app
|
|
| 45 |
|
| 46 |
# Install git, curl, bash, python3 and tools
|
| 47 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 48 |
-
git curl bash ca-certificates openssh-client jq python3 \
|
| 49 |
# Playwright/Chromium dependencies
|
| 50 |
libglib2.0-0 libnss3 libnspr4 libdbus-1-3 libatk1.0-0 libatk-bridge2.0-0 \
|
| 51 |
libcups2 libdrm2 libxkbcommon0 libatspi2.0-0 libxcomposite1 libxdamage1 \
|
|
@@ -68,6 +68,17 @@ ENV PATH="/home/node/.local/bin:${PATH}"
|
|
| 68 |
# Install OpenCode CLI
|
| 69 |
RUN curl -fsSL https://opencode.ai/install | bash
|
| 70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
# Copy built artifacts and dependencies from builder
|
| 72 |
COPY --from=builder --chown=node:node /app/node_modules ./node_modules
|
| 73 |
COPY --from=builder --chown=node:node /app/libs ./libs
|
|
|
|
| 45 |
|
| 46 |
# Install git, curl, bash, python3 and tools
|
| 47 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 48 |
+
git curl bash ca-certificates openssh-client jq python3 wget \
|
| 49 |
# Playwright/Chromium dependencies
|
| 50 |
libglib2.0-0 libnss3 libnspr4 libdbus-1-3 libatk1.0-0 libatk-bridge2.0-0 \
|
| 51 |
libcups2 libdrm2 libxkbcommon0 libatspi2.0-0 libxcomposite1 libxdamage1 \
|
|
|
|
| 68 |
# Install OpenCode CLI
|
| 69 |
RUN curl -fsSL https://opencode.ai/install | bash
|
| 70 |
|
| 71 |
+
# Install GitHub CLI (gh)
|
| 72 |
+
USER root
|
| 73 |
+
RUN mkdir -p -m 755 /etc/apt/keyrings && \
|
| 74 |
+
wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && \
|
| 75 |
+
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
| 76 |
+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
|
| 77 |
+
apt-get update && \
|
| 78 |
+
apt-get install -y gh && \
|
| 79 |
+
rm -rf /var/lib/apt/lists/*
|
| 80 |
+
USER node
|
| 81 |
+
|
| 82 |
# Copy built artifacts and dependencies from builder
|
| 83 |
COPY --from=builder --chown=node:node /app/node_modules ./node_modules
|
| 84 |
COPY --from=builder --chown=node:node /app/libs ./libs
|