dashy / Dockerfile
eienmojiki's picture
Update Dockerfile
8686459 verified
raw
history blame
997 Bytes
FROM buildpack-deps:22.04-curl
ENV DEBIAN_FRONTEND=noninteractive \
TZ=Asia/Ho_Chi_Minh \
PORT=8080 \
USER=koga \
HOME=home/koga
USER root
RUN useradd -m -u 1000 koga
RUN apt-get update && apt-get install -y --no-install-recommends \
bash \
unzip \
git \
git-lfs \
curl \
sudo \
wget \
ffmpeg \
psmisc \
aria2 \
build-essential \
libnss3-dev \
libgdk-pixbuf2.0-dev \
libgtk-3-dev \
libxss-dev \
zlib1g-dev \
libncurses5-dev \
libssl-dev \
libreadline-dev \
libffi-dev \
libasound2 \
make \
libnss3 \
software-properties-common && \
rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - && \
apt install nodejs
# npm install -g yarn
USER koga
WORKDIR $HOME
RUN git clone https://github.com/Lissy93/dashy.git && \
WORKDIR $HOME/dashy
RUN npm install && \
npm run build
EXPOSE $PORT
CMD ["npm", "run", "start"]