1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 05:47:03 +09:00

Fixed installation of yq-package in Dockerfile-generateconfig

This commit is contained in:
Kirill Shklyaev 2024-01-15 12:53:33 +00:00
parent 84b6ecc29e
commit 37aa8c8702

View file

@ -1,8 +1,6 @@
FROM golang:1.19 as generator
RUN wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && \
chmod +x /usr/bin/yq && \
go install github.com/anyproto/any-sync-tools/anyconf@latest
FROM golang:1.21.6-alpine3.19 as generator
RUN apk add --no-cache bash yq
RUN go install github.com/anyproto/any-sync-tools/anyconf@latest
WORKDIR /opt/generateconfig
COPY --chmod=777 docker-generateconfig/generate_config.sh .env .
RUN ./generate_config.sh