Skip to content

Commit

Permalink
Refactor docker image (#24)
Browse files Browse the repository at this point in the history
In a next step we can then include appcat-cli into the k8ify image

Signed-off-by: Manuel Hutter <manuel@hutter.io>
  • Loading branch information
mhutter authored Aug 10, 2023
1 parent 0840582 commit a143ba0
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Build
FROM golang:latest AS build
FROM docker.io/library/golang:alpine AS build

ENV HOME=/appcat-cli
WORKDIR /src
ENV CGO_ENABLED=0

WORKDIR ${HOME}

COPY . ${HOME}

RUN go build -v .
COPY . .
RUN go build -v -o /appcat-cli .

# Runtime
FROM ghcr.io/vshn/k8ify:latest
FROM docker.io/library/alpine:latest

COPY --from=build appcat-cli /bin/appcat
ENTRYPOINT ["/bin/appcat-cli"]
COPY --from=build /appcat-cli /bin/appcat-cli

0 comments on commit a143ba0

Please sign in to comment.