mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-04-21 20:33:48 -07:00
23 lines
695 B
Text
23 lines
695 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 && \
|
|
conda clean -a -y
|
|
|
|
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 "/usr/local/lib64" > /etc/ld.so.conf.d/usr-local-lib64.conf && ldconfig
|
|
|
|
ADD ext/central-controller-docker/main.sh /
|
|
RUN chmod a+x /main.sh
|
|
|
|
ENTRYPOINT ["/main.sh"]
|