mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
16 lines
511 B
Text
16 lines
511 B
Text
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
|
|
|
|
FROM alpine:3.18.4
|
|
RUN apk add --no-cache bash perl
|
|
WORKDIR /opt/processing
|
|
COPY docker-generateconfig/etc/ tmp-etc/
|
|
COPY --chmod=777 docker-generateconfig/processing.sh .
|
|
COPY --from=generator /opt/generateconfig/ generateconfig/
|
|
|
|
CMD ./processing.sh
|
|
|