Hemifield commited on
Commit
babfb53
·
verified ·
1 Parent(s): c52a5dc

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -60
Dockerfile DELETED
@@ -1,60 +0,0 @@
1
- # syntax=docker/dockerfile:1
2
- #
3
- # DeepSeek Harness (dsh) on a Hugging Face Docker Space.
4
- #
5
- # Persistent user data:
6
- # Hugging Face Storage Bucket -> /home/user
7
- #
8
- # DSH itself and nginx live in the image; DSH's user data, settings, credentials,
9
- # sessions, plugins, auth state, and user-level caches live under /home/user.
10
-
11
- FROM node:24-bookworm-slim
12
-
13
- # Always build the current DSH release.
14
- ARG DSH_VERSION=latest
15
- ARG MOBILE_CSS_PLUGIN="dsh-mobile-css@latest"
16
- ARG REMOTE_AUTH_PLUGIN="dsh-web-startup-auth@latest"
17
-
18
- ENV HOME=/home/user
19
- ENV DSH_HOME=/home/user/.dsh
20
-
21
- # Keep user-level configuration/cache/package-manager state inside the persistent bucket.
22
- ENV XDG_CONFIG_HOME=/home/user/.config
23
- ENV XDG_DATA_HOME=/home/user/.local/share
24
- ENV XDG_STATE_HOME=/home/user/.local/state
25
- ENV XDG_CACHE_HOME=/home/user/.cache
26
- ENV NPM_CONFIG_CACHE=/home/user/.cache/npm
27
- ENV PNPM_HOME=/home/user/.local/share/pnpm
28
-
29
- ENV MOBILE_CSS_PLUGIN=${MOBILE_CSS_PLUGIN}
30
- ENV REMOTE_AUTH_PLUGIN=${REMOTE_AUTH_PLUGIN}
31
-
32
- # DSH requires Node >=22.19 or >=24; Node 24 is the current LTS line.
33
- RUN apt-get update && apt-get install -y --no-install-recommends \
34
- nginx-light \
35
- curl \
36
- ca-certificates \
37
- && rm -rf /var/lib/apt/lists/*
38
-
39
- # Install DSH globally outside /home/user so the image contains the runtime.
40
- ENV NPM_CONFIG_PREFIX=/opt/npm-global
41
- ENV PATH=/opt/npm-global/bin:/home/user/.local/share/pnpm:$PATH
42
- RUN npm install -g @deepseek-ai/dsh@${DSH_VERSION}
43
-
44
- # Hugging Face Docker Spaces convention: uid 1000, home = /home/user.
45
- RUN if getent passwd 1000 >/dev/null; then userdel -r "$(getent passwd 1000 | cut -d: -f1)"; fi \
46
- && useradd -m -u 1000 user
47
-
48
- WORKDIR /app
49
-
50
- COPY --chown=user:user nginx.conf /etc/nginx/nginx.conf
51
- RUN mkdir -p /var/lib/nginx /var/log/nginx \
52
- && chown -R user:user /var/lib/nginx /var/log/nginx /etc/nginx
53
-
54
- COPY --chown=user:user entrypoint.sh /app/entrypoint.sh
55
- RUN chmod +x /app/entrypoint.sh
56
-
57
- USER user
58
-
59
- EXPOSE 7860
60
- CMD ["/app/entrypoint.sh"]