Update Dockerfile
Browse files- Dockerfile +9 -7
Dockerfile
CHANGED
|
@@ -3,30 +3,32 @@ FROM ubuntu:22.04
|
|
| 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
|
| 7 |
|
| 8 |
RUN apt-get install -y \
|
| 9 |
software-properties-common \
|
| 10 |
npm
|
| 11 |
|
| 12 |
RUN npm install n -g
|
| 13 |
-
RUN n
|
| 14 |
RUN npm install npm@latest -g
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
RUN useradd -m -u 1000
|
| 17 |
|
| 18 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 19 |
|
| 20 |
# END ROOT USER #
|
| 21 |
|
| 22 |
-
USER
|
| 23 |
-
ENV HOME=/home/
|
| 24 |
-
PATH=/home/
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
WORKDIR $HOME
|
| 29 |
|
| 30 |
-
COPY --chown=
|
| 31 |
|
| 32 |
CMD ["code-server", ".", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]
|
|
|
|
| 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 20
|
| 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"]
|