mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
add packer
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
d85085e65f
commit
9162d66161
|
@ -122,6 +122,7 @@ zeit/now-cli
|
||||||
nzbget/nzbget
|
nzbget/nzbget
|
||||||
bitly/oauth2_proxy
|
bitly/oauth2_proxy
|
||||||
facebook/osquery
|
facebook/osquery
|
||||||
|
hashicorp/packer
|
||||||
Tautulli/Tautulli
|
Tautulli/Tautulli
|
||||||
perkeep/perkeep
|
perkeep/perkeep
|
||||||
powershell/powershell
|
powershell/powershell
|
||||||
|
|
32
packer/Dockerfile
Normal file
32
packer/Dockerfile
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
FROM golang:alpine as builder
|
||||||
|
MAINTAINER Jessica Frazelle <jess@linux.com>
|
||||||
|
|
||||||
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
|
ENV GOPATH /go
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
bash \
|
||||||
|
ca-certificates \
|
||||||
|
gcc \
|
||||||
|
git \
|
||||||
|
make \
|
||||||
|
zip
|
||||||
|
|
||||||
|
ENV PACKER_VERSION v1.3.1
|
||||||
|
|
||||||
|
RUN go get github.com/hashicorp/packer
|
||||||
|
|
||||||
|
WORKDIR /go/src/github.com/hashicorp/packer
|
||||||
|
|
||||||
|
RUN git checkout "${PACKER_VERSION}"
|
||||||
|
|
||||||
|
RUN XC_ARCH="amd64" XC_OS="linux" LD_FLAGS=" -extldflags -static" make releasebin \
|
||||||
|
&& mv bin/packer /usr/bin/packer
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
COPY --from=builder /usr/bin/packer /usr/bin/packer
|
||||||
|
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
||||||
|
|
||||||
|
ENTRYPOINT [ "packer" ]
|
||||||
|
CMD [ "--help" ]
|
Loading…
Reference in New Issue
Block a user