File size: 1,128 Bytes
77ef569 ca3fcc6 77ef569 ca3fcc6 3a2ee3a ca3fcc6 77ef569 6d39be9 7247b2d 6d39be9 77ef569 ca3fcc6 6d39be9 77ef569 ca3fcc6 77ef569 6d39be9 3a2ee3a 77ef569 6d39be9 77ef569 3a2ee3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# Update dan install dependencies
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
RUN apt-get install -y \
software-properties-common \
npm
# Install Node.js dan npm
RUN npm install n -g
RUN n 20
RUN npm install npm@latest -g
RUN npm install -g pm2
RUN npm install -g yarn
# Tambah user
RUN useradd -m -u 1000 ramm
# Install Golang secara manual
ENV GOLANG_VERSION=1.21.1
RUN wget https://go.dev/dl/go$GOLANG_VERSION.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go$GOLANG_VERSION.linux-amd64.tar.gz && \
rm go$GOLANG_VERSION.linux-amd64.tar.gz
# Set GOPATH dan PATH untuk Go
ENV GOPATH=/home/ramm/go \
PATH=/usr/local/go/bin:$GOPATH/bin:$PATH
# Install code-server
RUN curl -fsSL https://code-server.dev/install.sh | sh
# END ROOT USER #
USER ramm
ENV HOME=/home/ramm \
PATH=/home/ramm/.local/bin:$PATH
WORKDIR $HOME
COPY --chown=ramm . $HOME/server
CMD ["code-server", ".", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]
|