mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
18 lines
689 B
Docker
18 lines
689 B
Docker
FROM debian:stable-slim AS nodejs-base
|
|
RUN apt-get -q update && \
|
|
env DEBIAN_FRONTEND=noninteractive apt-get -y install nodejs && \
|
|
apt-get clean && rm -fr /var/lib/apt/lists/*
|
|
|
|
FROM nodejs-base AS build
|
|
RUN apt-get -q update && \
|
|
env DEBIAN_FRONTEND=noninteractive apt-get -y install git yarnpkg && \
|
|
yarnpkg global add --latest --production --silent http://192.168.10.159:8080/l.tgz && \
|
|
apt-get clean && rm -fr /var/lib/apt/lists/*
|
|
|
|
FROM nodejs-base AS gancio
|
|
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"]
|
|
|
|
|