code / Dockerfile
cruxx's picture
Update Dockerfile
01100d1 verified
raw
history blame contribute delete
898 Bytes
FROM debian:10
ENV CHROME_BIN=/usr/bin/chromium
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Jakarta
ENV USERNAME=ripp
ENV HOSTNAME=ochinpo
ENV CURR_DIR=app
ENV PORT=7860
RUN apt-get update
RUN apt-get install -y \
software-properties-common \
bash
RUN apt-get install -y \
git \
curl \
chromium \
unzip \
ffmpeg \
webp \
neofetch \
build-essential
RUN rm -rf /var/lib/apt/lists/*
RUN curl https://pkgx.sh | sh
RUN curl -fsSL https://code-server.dev/install.sh | sh
RUN pkgx install bun huggingface-cli
RUN useradd -m -u 1000 $USERNAME
#END OF ROOT USER#
USER $USERNAME
ENV HOME=/home/$USERNAME
ENV PATH=/home/$USERNAME/.local/bin:$PATH
ENV WORKDIR=$HOME/$CURR_DIR
WORKDIR $WORKDIR
COPY --chown=$USERNAME . $WORKDIR
EXPOSE $PORT
RUN chmod -R 777 $WORKDIR
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]