Update Dockerfile
Browse files- Dockerfile +15 -5
Dockerfile
CHANGED
|
@@ -1,11 +1,21 @@
|
|
| 1 |
FROM debian:sid
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
-
|
| 5 |
-
|
|
|
|
| 6 |
ln -s /opt/neofetch/neofetch /usr/local/bin/neofetch
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
| 9 |
ENV HOME=/home/user \
|
| 10 |
PATH=/home/user/.local/bin:$PATH
|
|
|
|
|
|
|
| 11 |
CMD code-server --auth none --bind-addr 0.0.0.0:7860
|
|
|
|
| 1 |
FROM debian:sid
|
| 2 |
+
|
| 3 |
+
# Update packages
|
| 4 |
+
RUN apt update && apt install -y wget curl sudo git
|
| 5 |
+
|
| 6 |
+
# Create user
|
| 7 |
RUN useradd -m -u 1000 user
|
| 8 |
+
|
| 9 |
+
# Install Neofetch
|
| 10 |
+
RUN git clone https://github.com/dylanaraps/neofetch.git /opt/neofetch && \
|
| 11 |
ln -s /opt/neofetch/neofetch /usr/local/bin/neofetch
|
| 12 |
+
|
| 13 |
+
# Install code-server
|
| 14 |
+
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 15 |
+
|
| 16 |
+
# Environment variables
|
| 17 |
ENV HOME=/home/user \
|
| 18 |
PATH=/home/user/.local/bin:$PATH
|
| 19 |
+
|
| 20 |
+
# Start code-server
|
| 21 |
CMD code-server --auth none --bind-addr 0.0.0.0:7860
|