Skip to content

Commit 316fd9a

Browse files
authored
Update Dockerfile
1 parent d995921 commit 316fd9a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ ENV GOOS=$TARGETOS
66
ENV GOARCH=$TARGETARCH
77
ENV CGO_ENABLED=0
88

9-
RUN go install github.com/pressly/goose/v3/cmd/[email protected]
9+
WORKDIR /tmp/goose-src
10+
RUN go mod init goose-tmp
11+
12+
# Fetch goose 3.9.0, then build a static binary at /go/bin/goose
13+
RUN go get github.com/pressly/goose/[email protected]
14+
RUN go build -o /go/bin/goose github.com/pressly/goose/v3/cmd/goose
15+
1016

1117
FROM python:3.11.6-slim-bookworm
1218
COPY --from=goose /go/bin/goose /usr/local/bin/

0 commit comments

Comments
 (0)