-
Notifications
You must be signed in to change notification settings - Fork 70
/
Dockerfile
34 lines (25 loc) · 1.15 KB
/
Dockerfile
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
RUN apk update && \
apk add --no-cache git ca-certificates msttcorefonts-installer tzdata && \
update-ca-certificates && \
update-ms-fonts && \
adduser -D -g '' lollipops
WORKDIR /go/src/github.com/joiningdata/lollipops
COPY . .
RUN go get -d -v
RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/lollipops
########################################################################
FROM scratch
LABEL description="Lollipops command-line tool to generate variant annotation diagrams"
LABEL url="https://github.com/joiningdata/lollipops"
LABEL maintainer="Jeremy Jay <[email protected]>"
# Pull in a number of files from builder image
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /usr/share/fonts/truetype/msttcorefonts/Arial.ttf /usr/share/fonts/truetype/msttcorefonts/arial.ttf
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /go/bin/lollipops /bin/lollipops
USER lollipops
WORKDIR /data
VOLUME /data
CMD ["/bin/lollipops", "-legend", "-labels", "TP53", "R248Q#7f3333@131", "R273C", "R175H", "T125@5"]