mirror of
https://github.com/Gurkengewuerz/nitro-docker.git
synced 2024-11-25 17:20:52 +01:00
26 lines
632 B
Docker
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"] |