MD Mahadi commited on
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ FROM node:22-slim
|
|
| 4 |
# Prevent interactive prompts during package installation
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 6 |
|
| 7 |
-
# Install Python3, pip, venv, Git, curl, wget, build tools, and useful CLI utilities
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
python3 \
|
| 10 |
python3-pip \
|
|
@@ -16,6 +16,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 16 |
bash \
|
| 17 |
ca-certificates \
|
| 18 |
build-essential \
|
|
|
|
| 19 |
jq \
|
| 20 |
ripgrep \
|
| 21 |
unzip \
|
|
@@ -44,5 +45,5 @@ WORKDIR /data/workspace
|
|
| 44 |
# Hugging Face default port
|
| 45 |
EXPOSE 7860
|
| 46 |
|
| 47 |
-
#
|
| 48 |
-
CMD ["sh", "-c", "mkdir -p /data/workspace /data/.config/opencode /data/.local/share /data/.local/state /data/.cache /data/.npm /data/.local/bin && opencode serve --hostname 0.0.0.0 --port 7860"]
|
|
|
|
| 4 |
# Prevent interactive prompts during package installation
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 6 |
|
| 7 |
+
# Install Python3, pip, venv, Git, curl, wget, build tools, sudo, and useful CLI utilities
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
python3 \
|
| 10 |
python3-pip \
|
|
|
|
| 16 |
bash \
|
| 17 |
ca-certificates \
|
| 18 |
build-essential \
|
| 19 |
+
sudo \
|
| 20 |
jq \
|
| 21 |
ripgrep \
|
| 22 |
unzip \
|
|
|
|
| 45 |
# Hugging Face default port
|
| 46 |
EXPOSE 7860
|
| 47 |
|
| 48 |
+
# Fix ownership of /data at startup and start OpenCode server
|
| 49 |
+
CMD ["sh", "-c", "sudo chown -R user:user /data && mkdir -p /data/workspace /data/.config/opencode /data/.local/share /data/.local/state /data/.cache /data/.npm /data/.local/bin && opencode serve --hostname 0.0.0.0 --port 7860"]
|