-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 665 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 665 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
FROM golang:alpine as builder
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk add --no-cache \
ca-certificates
COPY . /go/src/github.com/so0k/r53Server
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
git \
gcc \
libc-dev \
libgcc \
make \
&& cd /go/src/github.com/so0k/r53Server \
&& make static \
&& mv r53Server /usr/bin/r53Server \
&& apk del .build-deps \
&& rm -rf /go \
&& echo "Build complete."
FROM scratch
COPY --from=builder /usr/bin/r53Server /usr/bin/r53Server
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
COPY static static
COPY templates templates
ENTRYPOINT [ "r53Server" ]
CMD [ "--help" ]