FROM golang:alpine # Install required tools RUN apk add --no-cache git ca-certificates bash # Set working directory WORKDIR /app # Copy entrypoint script COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh # Default environment values (can be overridden at runtime) ENV GIT_REPO="" ENV APP_PATH="." ENV GIT_USERNAME="" ENV GIT_TOKEN="" ENV PACKAGES="" ENTRYPOINT ["/entrypoint.sh"]