mirror of
https://github.com/Gurkengewuerz/nitro-docker.git
synced 2024-11-30 03:20:50 +01:00
21 lines
516 B
Docker
21 lines
516 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 \
|
|
&& 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"] |