Create Dockerfile
Browse files- Dockerfile +33 -0
Dockerfile
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
| 17 |
+
RUN useradd -m -u 1000 ramm
|
| 18 |
+
|
| 19 |
+
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 20 |
+
|
| 21 |
+
# END ROOT USER #
|
| 22 |
+
|
| 23 |
+
USER ramm
|
| 24 |
+
ENV HOME=/home/ramm \
|
| 25 |
+
PATH=/home/ramm/.local/bin:$PATH
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
WORKDIR $HOME
|
| 30 |
+
|
| 31 |
+
COPY --chown=ramm . $HOME/server
|
| 32 |
+
|
| 33 |
+
CMD ["code-server", ".", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]
|