Refactor Docker setup to unify CLI and HTTP API under a single image. Update entrypoint to use a script for dynamic behavior based on arguments. Revise documentation to clarify usage and service distinctions.
This commit is contained in:
+3
-1
@@ -13,5 +13,7 @@ FROM alpine:3.20
|
||||
RUN apk add --no-cache ca-certificates
|
||||
COPY --from=build /mtproxy_checker /usr/local/bin/mtproxy_checker
|
||||
COPY --from=build /mtproxy_checkerd /usr/local/bin/mtproxy_checkerd
|
||||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/usr/local/bin/mtproxy_checker"]
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user