psyflowz commited on
Commit
a933a65
·
verified ·
1 Parent(s): e7c604a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +80 -0
Dockerfile ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ # ========================
6
+ # SYSTEM DEPENDENCIES
7
+ # ========================
8
+ RUN apt update && apt install -y \
9
+ curl \
10
+ wget \
11
+ git \
12
+ nano \
13
+ sudo \
14
+ unzip \
15
+ build-essential \
16
+ software-properties-common \
17
+ ca-certificates \
18
+ gnupg \
19
+ lsb-release \
20
+ python3 \
21
+ python3-pip \
22
+ python3-venv \
23
+ apt-transport-https \
24
+ && apt clean
25
+
26
+ # ========================
27
+ # NODEJS + NPM
28
+ # ========================
29
+ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
30
+ apt install -y nodejs
31
+
32
+ # Global npm tools
33
+ RUN npm install -g \
34
+ npm@latest \
35
+ yarn \
36
+ pnpm \
37
+ pm2 \
38
+ nodemon \
39
+ express-generator
40
+
41
+ # ========================
42
+ # PYTHON AI / API TOOLS
43
+ # ========================
44
+ RUN pip3 install --upgrade pip && \
45
+ pip3 install \
46
+ fastapi \
47
+ uvicorn \
48
+ flask \
49
+ requests \
50
+ numpy \
51
+ pandas \
52
+ transformers \
53
+ torch \
54
+ huggingface_hub \
55
+ datasets \
56
+ accelerate
57
+
58
+ # HuggingFace CLI
59
+ RUN pip3 install "huggingface_hub[cli]"
60
+
61
+ # ========================
62
+ # CODE-SERVER (VS CODE IN BROWSER)
63
+ # ========================
64
+ RUN curl -fsSL https://code-server.dev/install.sh | sh
65
+
66
+ # Create user for safer dev usage
67
+ RUN useradd -m developer && echo "developer:developer" | chpasswd && adduser developer sudo
68
+
69
+ USER developer
70
+ WORKDIR /home/developer
71
+
72
+ # ========================
73
+ # EXPOSE PORTS
74
+ # ========================
75
+ EXPOSE 8080 3000 8000
76
+
77
+ # ========================
78
+ # START COMMAND
79
+ # ========================
80
+ CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "none"]