biblogram/Dockerfile

38 lines
1.0 KiB
Docker

FROM debian:11-slim
# set work dir
WORKDIR /root/
# Set build shell to bash, default has has some issues sometimes
SHELL ["/bin/bash", "-c"]
RUN apt update && apt upgrade -y
# Language setup and Initial repo update
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN apt install git python-is-python3 ca-certificates lsb-release apt-transport-https wget curl nano vim locales -y \
&& apt auto-remove -y \
&& apt clean -y
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen
#Install dependecies
RUN apt install graphicsmagick -y --no-install-recommends \
&& curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash \
&& source ~/.profile && source ~/.bashrc \
&& nvm install node
# clone bibliogram
RUN git clone https://git.shihaam.dev/shihaam/bibliogram
#NPM Install
RUN cd bibliogram \
&& source ~/.profile && source ~/.bashrc \
&& npm install
COPY buildfiles/startservice.sh .
RUN chmod +x /root/startservice.sh
# Start nginx
CMD /root/startservice.sh