From e0c0fd420f381fcd380f24ac94c898c2df1e4061 Mon Sep 17 00:00:00 2001 From: nathan wagner Date: Wed, 20 Jul 2022 12:59:23 +0000 Subject: [PATCH] working Dockerfile green ball --- Dockerfile | 8 +++++--- main.go | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab6f912..2dca95c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,11 @@ from registry.local/rgbarm64lib:latest as builder workdir /usr/src/app/rgb COPY . . RUN go mod tidy - +#RUN CGO_ENABLED=1 CC=musl-gcc go build --ldflags 'linkmode external -extldflags "-static"' RUN go build . +RUN mkdir -p /usr/src/app/work/ +RUN cp /usr/src/app/rgb/rgb /usr/src/app/work/rgb -FROM alpine:latest +#FROM alpine:latest -COPY --from=builder /usr/src/app/work/rgb /rgb +#COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/ diff --git a/main.go b/main.go index 96c0223..9fda44f 100644 --- a/main.go +++ b/main.go @@ -75,7 +75,7 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) { a.ctx.Clear() a.ctx.DrawCircle(float64(a.position.X), float64(a.position.Y), float64(a.stroke)) - a.ctx.SetColor(color.RGBA{255, 0, 0, 255}) + a.ctx.SetColor(color.RGBA{0, 255, 0, 255}) a.ctx.Fill() return a.ctx.Image(), time.After(time.Millisecond * 50), nil }