Skip to content

Commit

Permalink
simplify Dockerfile more
Browse files Browse the repository at this point in the history
  • Loading branch information
pbnjay committed Aug 2, 2019
1 parent f9c742e commit 397ac2c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM golang:alpine AS builder

RUN apk update && \
apk add --no-cache git ca-certificates fontconfig msttcorefonts-installer tzdata && \
apk add --no-cache git ca-certificates msttcorefonts-installer tzdata && \
update-ca-certificates && \
update-ms-fonts && \
fc-cache -f && \
adduser -D -g '' lollipops

WORKDIR /go/src/github.com/pbnjay/lollipops
Expand All @@ -26,12 +25,6 @@ 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

# TODO:
# - limit entries in passwd (root, nobody, lollipops?)
# - do we need /etc/group?
# - do we need /tmp? /dev entries?

COPY --from=builder /go/bin/lollipops /bin/lollipops

USER lollipops
Expand Down

0 comments on commit 397ac2c

Please sign in to comment.