Fix Alpine Docker build (#1197)

* Fix Docker build on Alpine due missing symbols due to using the edge version of ldc and ldc-runtime
This commit is contained in:
nrandon 2020-12-22 18:37:23 +00:00 committed by GitHub
parent 771a93242f
commit 8c6d1d19b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
# -*-Dockerfile-*-
FROM golang:alpine
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/community \
-X http://dl-cdn.alpinelinux.org/alpine/edge/main \
RUN apk add \
alpine-sdk gnupg xz curl-dev sqlite-dev binutils-gold \
autoconf automake ldc
RUN go get github.com/tianon/gosu
@ -15,8 +14,7 @@ RUN cd /usr/src/onedrive/ && \
FROM alpine
ENTRYPOINT ["/entrypoint.sh"]
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community \
-X http://dl-cdn.alpinelinux.org/alpine/edge/main \
RUN apk add --no-cache \
bash libcurl libgcc shadow sqlite-libs ldc-runtime && \
mkdir -p /onedrive/conf /onedrive/data
COPY contrib/docker/entrypoint.sh /