api / Dockerfile
pluviouse's picture
Update Dockerfile
f37a145 verified
raw
history blame contribute delete
795 Bytes
FROM debian:10
ENV CHROME_BIN=/usr/bin/chromium
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Jakarta
ENV USERNAME=yuzu
ENV HOSTNAME=wonderland
ENV BOT_DIR=bot
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 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/$BOT_DIR
WORKDIR $WORKDIR
COPY --chown=$USERNAME . $WORKDIR
RUN pkgx bun install
EXPOSE $PORT
RUN chmod -R 777 $WORKDIR
CMD ["pkgx", "bun", "run", "app.ts"]