Ramczy commited on
Commit
edf3a0f
·
verified ·
1 Parent(s): a206d07

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +34 -0
Dockerfile ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ RUN apt-get update
6
+ RUN apt-get install -y curl python3.11 python3-pip libmagic1 speedtest-cli neofetch ffmpeg imagemagick git git-lfs zip wget unzip yarn
7
+
8
+ RUN apt-get install -y \
9
+ software-properties-common \
10
+ npm
11
+
12
+ RUN npm install n -g
13
+ RUN n 18
14
+ RUN npm install npm@latest -g
15
+ RUN npm install -g pm2
16
+ RUN npm install -g yarn
17
+
18
+ RUN useradd -m -u 1000 ramm
19
+
20
+ RUN curl -fsSL https://code-server.dev/install.sh | sh
21
+
22
+ # END ROOT USER #
23
+
24
+ USER ramm
25
+ ENV HOME=/home/ramm \
26
+ PATH=/home/ramm/.local/bin:$PATH
27
+
28
+
29
+
30
+ WORKDIR $HOME
31
+
32
+ COPY --chown=ramm . $HOME/server
33
+
34
+ CMD ["code-server", ".", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]