mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-27 18:00:36 +02:00
7cf2912d2d
* Move lots of stuff into contrib directory to clean up root folder * Update autoconf files for new location of some files * Refactor README split and move to docs directory * Update INSTALL.md * Update Makefile.in * Install docs from new location * Uninstall docs correctly * Update Dockerfile * Fix up Dockerfile spacing * Move systemd stuff to contrib * Move docker specific stuff to contrib/docker, update docs * Fix Alpine and Stretch docker files * Update configure after changed file locations * Update INSTALL.md to include pkg-config as requirement * Move also entrypoint.sh to contrib/docker * Update 'min-notif-changes' to 'min-notify-changes' which was missed in PR #467 * Update to add --sync-root-files to usage.md and man page * Update usage.md to include --auth-files ARG details
26 lines
976 B
Docker
26 lines
976 B
Docker
# -*-Dockerfile-*-
|
|
FROM golang:alpine
|
|
RUN apk add alpine-sdk bash llvm5 gnupg xz jq curl-dev sqlite-dev binutils-gold
|
|
ARG LDC_VERSION=1.13.0
|
|
ENV LDC_VERSION=${LDC_VERSION}
|
|
RUN curl -fsSL "https://github.com/ldc-developers/ldc/releases/download/v${LDC_VERSION}/ldc2-${LDC_VERSION}-alpine-linux-x86_64.tar.xz" |\
|
|
tar xJf - -C / && \
|
|
mv "/ldc2-${LDC_VERSION}-alpine-linux-x86_64" "/ldc"
|
|
ENV PATH="/ldc/bin:${PATH}" \
|
|
LD_LIBRARY_PATH="/ldc/lib:/usr/lib:/lib:${LD_LIBRARY_PATH}" \
|
|
LIBRARY_PATH="/ldc/lib:/usr/lib:/lib:${LD_LIBRARY_PATH}"
|
|
RUN go get github.com/tianon/gosu
|
|
COPY . /usr/src/onedrive
|
|
RUN cd /usr/src/onedrive/ && \
|
|
DC=ldmd2 ./configure && \
|
|
make clean && \
|
|
make && \
|
|
make install
|
|
|
|
FROM alpine
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
RUN apk add --no-cache bash libcurl libgcc shadow sqlite-libs && \
|
|
mkdir -p /onedrive/conf /onedrive/data
|
|
COPY contrib/docker/entrypoint.sh /
|
|
COPY --from=0 /go/bin/gosu /usr/local/bin/onedrive /usr/local/bin/
|