Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit e801f47

Browse files
committed
Simplify Docker image
1 parent be73810 commit e801f47

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.dockerignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
bin
33
output
44
img2lambda
5-
vendor
65
AUTHORS.md
76
CONTRIBUTING.md
87
LICENSE
98
NOTICE
109
README.md
1110
Dockerfile
12-
Makefile

Dockerfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
FROM golang:1.11 AS builder
22

3-
# Install dep
43
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
54

6-
WORKDIR $GOPATH/src/github.com/awslabs/img2lambda
5+
WORKDIR /go/src/github.com/awslabs/img2lambda
76

8-
# Ensure deps, optimized for build caching
9-
COPY Gopkg.toml Gopkg.lock ./
10-
RUN dep ensure --vendor-only
11-
12-
# Copy and build the code
137
COPY . ./
14-
RUN go build -o /bin/img2lambda -tags="containers_image_ostree_stub exclude_graphdriver_devicemapper exclude_graphdriver_overlay exclude_graphdriver_btrfs containers_image_openpgp" .
8+
RUN make
159

1610
FROM busybox:glibc
17-
COPY --from=builder /bin/img2lambda /bin/img2lambda
18-
RUN /bin/img2lambda --help
11+
COPY --from=builder /go/src/github.com/awslabs/img2lambda/bin/local/img2lambda /bin/img2lambda
1912
CMD [ "/bin/img2lambda" ]

0 commit comments

Comments
 (0)