fix install instruction

This commit is contained in:
lesion
2022-07-10 22:08:57 +02:00
parent 2ac6e3d171
commit 9e86a9399b
4 changed files with 8 additions and 18 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM debian:stable-slim AS nodejs-base
RUN apt-get -q update && \
env DEBIAN_FRONTEND=noninteractive apt-get -y install git nodejs yarnpkg && \
apt-get clean && rm -fr /var/lib/apt/lists/*
FROM nodejs-base AS build
RUN yarnpkg global add --network-timeout 1000000000 --latest --production --silent http://192.168.0.178:8080/l.tgz && \
apt-get clean && rm -fr /var/lib/apt/lists/* && \
yarnpkg cache clean
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"]