Skip to content

Commit 12a4c74

Browse files
authored
Merge pull request #4 from m-mizutani/fix/bind-pkl
Add download and setup for pkl-linux-amd64 binary
2 parents d357b6f + 11d2ad8 commit 12a4c74

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ COPY . /app
55
WORKDIR /app
66
RUN go build -o hatchery -ldflags "-X github.com/m-mizutani/hatchery/pkg/domain/model.AppVersion=${BUILD_VERSION}" .
77

8-
FROM gcr.io/distroless/base:nonroot
9-
USER nonroot
8+
RUN curl -L -o /pkl https://github.com/apple/pkl/releases/download/0.25.2/pkl-linux-amd64
9+
RUN chmod +x /pkl
10+
11+
FROM --platform=linux/x86_64 ubuntu:20.04
1012
COPY --from=build-go /app/hatchery /hatchery
13+
COPY --from=build-go /pkl /usr/local/bin/pkl
1114

1215
ENTRYPOINT ["/hatchery"]

0 commit comments

Comments
 (0)