Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #90 from tetsuharuohzeki/docker-multi
Browse files Browse the repository at this point in the history
Use Docker's multi-stage builds
  • Loading branch information
tetsuharuohzeki committed Jul 7, 2020
2 parents b2502cb + 833bad3 commit ddd2315
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ tools/

.gitignore
LICENSE.MIT
Makefile
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM golang:1.14-buster

FROM golang:1.14-buster AS builder
ADD . /gh-action-detect-unmergeable/

WORKDIR /gh-action-detect-unmergeable/

RUN ["go", "build", "-o", "app"]
RUN ["make", "build", "-j"]

ENTRYPOINT ["/gh-action-detect-unmergeable/app"]
FROM debian:buster-20200607-slim
WORKDIR /root/
COPY --from=builder /gh-action-detect-unmergeable/ghaction_unmergeable_detection .
ENTRYPOINT ["/root/ghaction_unmergeable_detection"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GO_CMD := go
GO_BUILD := $(GO_CMD) build

DIST_APP_BIN_NAME := app
DIST_APP_BIN_NAME := ghaction_unmergeable_detection

all: help

Expand Down

0 comments on commit ddd2315

Please sign in to comment.