Update Dockerfile
Browse files- Dockerfile +6 -12
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ 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 \
|
|
@@ -12,27 +12,21 @@ RUN apt-get install -y \
|
|
| 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 |
-
RUN mkdir bott
|
| 18 |
|
| 19 |
-
RUN useradd -m -u 1000
|
| 20 |
|
| 21 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 22 |
-
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash source ~/.bashrc
|
| 23 |
-
|
| 24 |
-
RUN npm install --lts
|
| 25 |
|
| 26 |
# END ROOT USER #
|
| 27 |
|
| 28 |
-
USER
|
| 29 |
-
ENV HOME=/home/
|
| 30 |
-
PATH=/home/
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
WORKDIR $HOME
|
| 35 |
|
| 36 |
-
COPY --chown=
|
| 37 |
|
| 38 |
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
|
| 7 |
|
| 8 |
RUN apt-get install -y \
|
| 9 |
software-properties-common \
|
|
|
|
| 12 |
RUN npm install n -g
|
| 13 |
RUN n 18
|
| 14 |
RUN npm install npm@latest -g
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
RUN useradd -m -u 1000 lipp
|
| 17 |
|
| 18 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# END ROOT USER #
|
| 21 |
|
| 22 |
+
USER lipp
|
| 23 |
+
ENV HOME=/home/lipp \
|
| 24 |
+
PATH=/home/lipp/.local/bin:$PATH
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
WORKDIR $HOME
|
| 29 |
|
| 30 |
+
COPY --chown=lipp . $HOME/server
|
| 31 |
|
| 32 |
CMD ["code-server", ".", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]
|