nitro-docker/imager/Dockerfile

26 lines
632 B
Docker

FROM node:lts as builder
ARG BRANCH=dev
ARG COMMIT=7ff2405
WORKDIR /app
RUN apt-get update && apt-get install -y \
git \
build-essential \
python3 \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
&& rm -rf /var/lib/apt/lists/*
RUN apt remove apt --autoremove -y --allow-remove-essential
RUN git clone --branch ${BRANCH} --recurse-submodules https://github.com/billsonnn/nitro-imager.git .
RUN git checkout $COMMIT
RUN yarn install
RUN yarn build
ENTRYPOINT ["node", "/app/dist/src/main.js"]
#ENTRYPOINT ["tail", "-f", "/dev/null"]