Update Dockerfile
Browse files- Dockerfile +16 -4
Dockerfile
CHANGED
|
@@ -2,22 +2,34 @@ FROM ubuntu:22.04
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
-
|
| 6 |
-
RUN apt-get install -y curl python3.11 python3-pip libmagic1 speedtest-cli neofetch ffmpeg imagemagick git git-lfs zip wget unzip yarn whois
|
| 7 |
|
| 8 |
RUN apt-get install -y \
|
| 9 |
software-properties-common \
|
| 10 |
-
npm
|
| 11 |
-
golang-go # Menambahkan Golang
|
| 12 |
|
|
|
|
| 13 |
RUN npm install n -g
|
| 14 |
RUN n 20
|
| 15 |
RUN npm install npm@latest -g
|
| 16 |
RUN npm install -g pm2
|
| 17 |
RUN npm install -g yarn
|
| 18 |
|
|
|
|
| 19 |
RUN useradd -m -u 1000 ramm
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 22 |
|
| 23 |
# END ROOT USER #
|
|
|
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
|
| 5 |
+
# Update dan install dependencies
|
| 6 |
+
RUN apt-get update && apt-get install -y curl python3.11 python3-pip libmagic1 speedtest-cli neofetch ffmpeg imagemagick git git-lfs zip wget unzip yarn whois
|
| 7 |
|
| 8 |
RUN apt-get install -y \
|
| 9 |
software-properties-common \
|
| 10 |
+
npm
|
|
|
|
| 11 |
|
| 12 |
+
# Install Node.js dan npm
|
| 13 |
RUN npm install n -g
|
| 14 |
RUN n 20
|
| 15 |
RUN npm install npm@latest -g
|
| 16 |
RUN npm install -g pm2
|
| 17 |
RUN npm install -g yarn
|
| 18 |
|
| 19 |
+
# Tambah user
|
| 20 |
RUN useradd -m -u 1000 ramm
|
| 21 |
|
| 22 |
+
# Install Golang secara manual
|
| 23 |
+
ENV GOLANG_VERSION=1.21.1
|
| 24 |
+
RUN wget https://go.dev/dl/go$GOLANG_VERSION.linux-amd64.tar.gz && \
|
| 25 |
+
tar -C /usr/local -xzf go$GOLANG_VERSION.linux-amd64.tar.gz && \
|
| 26 |
+
rm go$GOLANG_VERSION.linux-amd64.tar.gz
|
| 27 |
+
|
| 28 |
+
# Set GOPATH dan PATH untuk Go
|
| 29 |
+
ENV GOPATH=/home/ramm/go \
|
| 30 |
+
PATH=/usr/local/go/bin:$GOPATH/bin:$PATH
|
| 31 |
+
|
| 32 |
+
# Install code-server
|
| 33 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 34 |
|
| 35 |
# END ROOT USER #
|