Temporary configuration to run Gancio on fly.io
This commit is contained in:
parent
72f925d0a9
commit
f9d7a5d09e
3 changed files with 83 additions and 0 deletions
16
gancio/Dockerfile
Normal file
16
gancio/Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
FROM node:18-slim AS nodejs-base
|
||||
RUN apt-get -q update && \
|
||||
env DEBIAN_FRONTEND=noninteractive apt-get -y install git && \
|
||||
apt-get clean && rm -fr /var/lib/apt/lists/*
|
||||
|
||||
FROM nodejs-base AS build
|
||||
RUN yarnpkg global add --network-timeout 1000000000 --latest --production --silent https://gancio.org/latest.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/
|
||||
COPY config.json /config.json
|
||||
RUN ln -s ../share/.config/yarn/global/node_modules/.bin/gancio /usr/local/bin/gancio
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/gancio"]
|
Loading…
Add table
Add a link
Reference in a new issue