mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-08 08:52:15 +02:00
8c6d1d19b8
* Fix Docker build on Alpine due missing symbols due to using the edge version of ldc and ldc-runtime
22 lines
599 B
Docker
22 lines
599 B
Docker
# -*-Dockerfile-*-
|
|
FROM golang:alpine
|
|
RUN apk add \
|
|
alpine-sdk gnupg xz curl-dev sqlite-dev binutils-gold \
|
|
autoconf automake ldc
|
|
RUN go get github.com/tianon/gosu
|
|
COPY . /usr/src/onedrive
|
|
RUN cd /usr/src/onedrive/ && \
|
|
autoreconf -fiv && \
|
|
./configure && \
|
|
make clean && \
|
|
make && \
|
|
make install
|
|
|
|
FROM alpine
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
RUN apk add --no-cache \
|
|
bash libcurl libgcc shadow sqlite-libs ldc-runtime && \
|
|
mkdir -p /onedrive/conf /onedrive/data
|
|
COPY contrib/docker/entrypoint.sh /
|
|
COPY --from=0 /go/bin/gosu /usr/local/bin/onedrive /usr/local/bin/
|