nitro-docker/imager/Dockerfile

26 lines
632 B
Docker
Raw Permalink Normal View History

2023-10-24 15:59:51 +02:00
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 \
2023-10-30 00:13:36 +01:00
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
2023-10-24 15:59:51 +02:00
&& 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"]