Combine runs to one layer (#1151)

This commit is contained in:
Sandro 2020-05-28 00:31:32 +02:00 committed by GitHub
parent 96022d3aaf
commit 2f0f2ee40d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ RUN apk update && apk add go git gcc musl-dev \
FROM alpine:edge FROM alpine:edge
RUN apk --no-cache add ca-certificates mailcap RUN apk --no-cache add ca-certificates mailcap
COPY --from=builder /bin/matterbridge /bin/matterbridge COPY --from=builder /bin/matterbridge /bin/matterbridge
RUN mkdir /etc/matterbridge RUN mkdir /etc/matterbridge \
RUN touch /etc/matterbridge/matterbridge.toml && touch /etc/matterbridge/matterbridge.toml \
RUN ln -sf /matterbridge.toml /etc/matterbridge/matterbridge.toml && ln -sf /matterbridge.toml /etc/matterbridge/matterbridge.toml
ENTRYPOINT ["/bin/matterbridge", "-conf", "/etc/matterbridge/matterbridge.toml"] ENTRYPOINT ["/bin/matterbridge", "-conf", "/etc/matterbridge/matterbridge.toml"]