From 72101fb97ec9a3c02254f2c2748673bfda9b1d59 Mon Sep 17 00:00:00 2001 From: Yihang Wang Date: Thu, 3 Oct 2024 04:07:49 +0800 Subject: [PATCH] refactor: move config files to cmd/server --- cmd/server/Dockerfile | 2 +- config.example.dev.yaml => cmd/server/config.example.dev.yaml | 0 config.example.prod.yaml => cmd/server/config.example.prod.yaml | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename config.example.dev.yaml => cmd/server/config.example.dev.yaml (100%) rename config.example.prod.yaml => cmd/server/config.example.prod.yaml (100%) diff --git a/cmd/server/Dockerfile b/cmd/server/Dockerfile index 22847e9..b12935a 100644 --- a/cmd/server/Dockerfile +++ b/cmd/server/Dockerfile @@ -22,6 +22,6 @@ RUN cp dist/platypus-server_${TARGETOS}_${TARGETARCH}_v1/platypus-server /usr/lo FROM alpine:3.12 RUN apk add --no-cache ca-certificates COPY --from=builder /usr/local/bin/platypus-server /usr/local/bin/platypus-server -COPY --from=builder /app/config.example.prod.yaml /etc/platypus/server/config.yaml +COPY --from=builder /app/cmd/server/config.example.prod.yaml /etc/platypus/server/config.yaml ENTRYPOINT [ "/usr/local/bin/platypus-server", "-c", "/etc/platypus/server/config.yaml" ] \ No newline at end of file diff --git a/config.example.dev.yaml b/cmd/server/config.example.dev.yaml similarity index 100% rename from config.example.dev.yaml rename to cmd/server/config.example.dev.yaml diff --git a/config.example.prod.yaml b/cmd/server/config.example.prod.yaml similarity index 100% rename from config.example.prod.yaml rename to cmd/server/config.example.prod.yaml