gancio/docs/Dockerfile

18 lines
623 B
Text
Raw Normal View History

2022-08-08 00:05:37 +02:00
FROM node:16-slim AS nodejs-base
RUN apt-get -q update && \
2022-08-08 00:05:37 +02:00
env DEBIAN_FRONTEND=noninteractive apt-get -y install git && \
apt-get clean && rm -fr /var/lib/apt/lists/*
FROM nodejs-base AS build
2022-08-08 00:05:37 +02:00
RUN yarnpkg global add --network-timeout 1000000000 --latest --production --silent https://gancio.org/latest.tgz && \
2022-07-10 22:08:57 +02:00
apt-get clean && rm -fr /var/lib/apt/lists/* && \
yarnpkg cache clean
2022-06-23 17:11:51 +02:00
FROM nodejs-base
COPY --from=build /usr/local/share/.config/yarn/ /usr/local/share/.config/yarn/
RUN ln -s ../share/.config/yarn/global/node_modules/.bin/gancio /usr/local/bin/gancio
ENTRYPOINT ["/usr/local/bin/gancio"]