bk939448 commited on
Commit
0fe8232
·
verified ·
1 Parent(s): ec2de37

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -53
Dockerfile DELETED
@@ -1,53 +0,0 @@
1
- # 1. Node.js stable version
2
- FROM node:18-slim
3
-
4
-
5
- # 2. Install required system tools & HF CLI
6
- RUN apt-get update && apt-get install -y \
7
- curl \
8
- bash \
9
- git \
10
- python3 \
11
- python3-pip \
12
- python3.11-venv \
13
- build-essential \
14
- gcc \
15
- g++ \
16
- make \
17
- nano \
18
- zip \
19
- unzip \
20
- procps \
21
- timeout \
22
- && curl -LsSf https://hf.co/cli/install.sh | bash \
23
- && rm -rf /var/lib/apt/lists/*
24
-
25
-
26
- # 3. Install OpenCode
27
- RUN curl -fsSL https://opencode.ai/install | bash
28
-
29
-
30
- # 4. Setup data folder and root permissions
31
- USER root
32
- RUN mkdir -p /data && chmod 777 /data
33
- WORKDIR /data
34
-
35
-
36
- # 5. Copy entrypoint script
37
- COPY entrypoint.sh /entrypoint.sh
38
- RUN chmod +x /entrypoint.sh
39
-
40
-
41
- # 6. Environment settings with RAM limit
42
- ENV OPENCODE_DATA_DIR=/data
43
- ENV HOME=/data
44
- ENV PATH="/root/.local/bin:/home/node/.local/bin:$PATH"
45
- ENV NODE_OPTIONS="--max-old-space-size=14336"
46
-
47
-
48
- # 7. Expose port 7860
49
- EXPOSE 7860
50
-
51
-
52
- # 8. Run entrypoint script
53
- CMD ["/entrypoint.sh"]