-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 784 Bytes
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
COPY . /go/src/github.com/genuinetools/contained.af
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
git \
gcc \
libc-dev \
libgcc \
make \
&& cd /go/src/github.com/genuinetools/contained.af \
&& make static \
&& mv contained.af /usr/bin/contained.af \
&& apk del .build-deps \
&& rm -rf /go \
&& echo "Build complete."
FROM alpine:latest
COPY --from=builder /usr/bin/contained.af /usr/bin/contained.af
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
COPY frontend /usr/src/contained.af/
WORKDIR /usr/src/contained.af
ENTRYPOINT [ "contained.af" ]
CMD [ "--help" ]