Skip to content

Commit

Permalink
build: fixup docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Oct 8, 2024
1 parent 44532c1 commit 136d913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ COPY . .
RUN make build
USER runner

FROM scratch
FROM alpine:3
LABEL maintainer="Adam Shannon <adamkshannon@gmail.com>"
RUN apk add --no-cache tzdata

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /go/src/github.com/adamdecaf/deadcheck/bin/deadcheck /bin/deadcheck
Expand Down
2 changes: 2 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ build:

docker:
docker build --pull -t adamdecaf/deadcheck:$(VERSION) -f Dockerfile .
docker tag adamdecaf/deadcheck:$(VERSION) adamdecaf/deadcheck:latest

docker-push:
docker push adamdecaf/deadcheck:$(VERSION)
docker push adamdecaf/deadcheck:latest

.PHONY: check
check:
Expand Down

0 comments on commit 136d913

Please sign in to comment.