Skip to content

Commit

Permalink
Get rid of ca-certificates that are already present on the system: ht…
Browse files Browse the repository at this point in the history
  • Loading branch information
meeDamian committed May 5, 2020
1 parent 85cc35b commit 22c60f4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions 0.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ RUN go build -v -trimpath -mod=readonly -tags="$TAGS" \
FROM alpine:${VER_ALPINE} AS cross-check

# Install utilities used later
RUN apk add --no-cache ca-certificates file upx
RUN apk add --no-cache file upx

RUN mkdir -p /bin /alpine /debian

Expand Down Expand Up @@ -245,9 +245,6 @@ COPY --from=perms /etc/group /etc/passwd /etc/shadow /etc/
# From `perms`, copy *the contents* of `$DIR` (ie. `.lnd/`), and set correct owner for destination `$DIR`
COPY --from=perms --chown=$USER:$USER $DIR $DIR

#
COPY --from=cross-check /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

# Copy binaries from the cross-check stage
COPY --from=cross-check /bin/lnd /bin/lncli /usr/local/bin/

Expand All @@ -260,4 +257,4 @@ VOLUME $DIR/.lnd/
EXPOSE 8080 9735 9911 10009

# Specify the start command and entrypoint as the lnd daemon
ENTRYPOINT ["lnd"]
ENTRYPOINT ["/bin/lnd"]

0 comments on commit 22c60f4

Please sign in to comment.