Anatoly Laskaris 3c04c06228
Isolate stage, testnet and krasnodar (#37)
* Isolate stage, testnet and krasnodar

* Use one node as bootstrap

* Fix json format

* Setup ssh-agent inside deploy container

Workaround for `Needed to prompt for a connection or sudo password, but input would be ambiguous in parallel mode`

* Add private key of any format

* Cleanup

* List available command by default when no CMD provided

* explain --list

Co-authored-by: folex <0xdxdy@gmail.com>
2022-06-20 16:46:12 +03:00

14 lines
433 B
Docker

FROM python:2-alpine as BUILD
RUN apk add gcc musl-dev libffi-dev rust cargo make openssl-dev
COPY ./requirements.txt ./requirements.txt
RUN pip install --user -r requirements.txt
FROM python:2-alpine
RUN apk --no-cache add openssh-client
COPY --from=BUILD /root/.local /root/.local
COPY . /deploy
ENV PATH=/root/.local/bin:$PATH
WORKDIR /deploy
ENTRYPOINT ["/deploy/entrypoint.sh"]
CMD ["--list"] # execute `fab --list` by default