mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-09-08 07:42:55 +02:00
24 lines
869 B
Text
24 lines
869 B
Text
FROM golang:bookworm AS go_base
|
|
RUN go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
|
|
|
|
|
|
FROM continuumio/miniconda3:25.3.1-1
|
|
|
|
LABEL maintainer="ZeroTier Inc."
|
|
|
|
ADD environment.yml /tmp/environment.yml
|
|
|
|
RUN conda env create -f /tmp/environment.yml
|
|
|
|
COPY --from=go_base /go/bin/migrate /usr/local/bin/migrate
|
|
COPY ext/central-controller-docker/migrations /migrations
|
|
ADD build/zerotier-one /usr/local/bin/zerotier-one
|
|
RUN chmod a+x /usr/local/bin/zerotier-one
|
|
RUN echo "/opt/conda/envs/central_controller/lib" > /etc/ld.so.conf.d/conda-central-controller.conf && ldconfig
|
|
|
|
ADD ext/central-controller-docker/main-new.sh /main.sh
|
|
RUN chmod a+x /main.sh
|
|
|
|
SHELL ["conda", "run", "--no-capture-output", "-n", "central_controller", "/bin/bash", "-c"]
|
|
|
|
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "central_controller", "/main.sh"]
|