Hemifield commited on
Commit
f4ed58e
·
verified ·
1 Parent(s): f075141

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -42
Dockerfile DELETED
@@ -1,42 +0,0 @@
1
- # syntax=docker/dockerfile:1
2
- FROM ubuntu:24.04
3
-
4
- ENV DEBIAN_FRONTEND=noninteractive \
5
- LANG=C.UTF-8
6
-
7
- # ---- System packages + Node.js 22 (required by the Claude Code / Codex CLIs) ----
8
- RUN apt-get update && apt-get install -y --no-install-recommends \
9
- curl ca-certificates gnupg git git-lfs build-essential \
10
- python3 python3-pip sudo openssh-client unzip vim nano \
11
- && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
12
- && apt-get install -y --no-install-recommends nodejs \
13
- && rm -rf /var/lib/apt/lists/*
14
-
15
- # ---- code-server (VS Code in the browser) ----
16
- RUN curl -fsSL https://code-server.dev/install.sh | sh
17
-
18
- # ---- Claude Code + OpenAI Codex CLIs, installed globally into the image ----
19
- RUN npm install -g @anthropic-ai/claude-code @openai/codex \
20
- && npm cache clean --force
21
-
22
- # ---- HF Spaces containers run as UID 1000 ----
23
- # Ubuntu 24.04 already ships a default "ubuntu" user at UID 1000, so remove
24
- # whichever user currently holds that UID before creating ours.
25
- RUN existing_uid_1000="$(getent passwd 1000 | cut -d: -f1)"; \
26
- if [ -n "$existing_uid_1000" ]; then userdel -r "$existing_uid_1000" 2>/dev/null || true; fi \
27
- && useradd -m -u 1000 -s /bin/bash user \
28
- && echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/user \
29
- && mkdir -p /data && chown user:user /data
30
-
31
- USER user
32
- ENV HOME=/home/user \
33
- PATH=/home/user/.local/bin:$PATH
34
- WORKDIR /home/user
35
-
36
- COPY --chown=user:user entrypoint.sh /home/user/entrypoint.sh
37
- RUN chmod +x /home/user/entrypoint.sh
38
-
39
- # HF Spaces expects the container to listen on this port (see README.md app_port)
40
- EXPOSE 7860
41
-
42
- ENTRYPOINT ["/home/user/entrypoint.sh"]