mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-23 16:12:12 +02:00
72905b951f
This issue relates to a build issue on the official docker build system where Alpine Linux 3.14 will not currently build so fix the Alpine version to 3.13. Make sure build and runtime image used in building the docker container are the same Alpine version to remove runtime issues.
22 lines
610 B
Docker
22 lines
610 B
Docker
# -*-Dockerfile-*-
|
|
FROM alpine:3.13
|
|
RUN apk add \
|
|
alpine-sdk gnupg xz curl-dev sqlite-dev binutils-gold \
|
|
autoconf automake ldc go
|
|
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:3.13
|
|
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 /root/go/bin/gosu /usr/local/bin/onedrive /usr/local/bin/
|