mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-08 16:56:39 +02:00
ff8d137057
* Update to dmd-2.088.0 and ldc-1.18.0 * Update documentation based on change in DMD and LDC minimum versions. Minimum DMD version now 2.088.0 and minimum LDC version now 1.18.0. * Security upgrade alpine Docker file to 3.16
34 lines
983 B
Docker
34 lines
983 B
Docker
# -*-Dockerfile-*-
|
|
|
|
ARG DEBIAN_VERSION=bullseye
|
|
|
|
FROM debian:${DEBIAN_VERSION} AS builder-onedrive
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends build-essential curl ca-certificates libcurl4-openssl-dev libsqlite3-dev libxml2-dev pkg-config git ldc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . /usr/src/onedrive
|
|
WORKDIR /usr/src/onedrive
|
|
|
|
RUN ./configure DC=/usr/bin/ldmd2 \
|
|
&& make clean \
|
|
&& make \
|
|
&& make install
|
|
|
|
FROM debian:${DEBIAN_VERSION}-slim
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gosu libcurl4 libsqlite3-0 ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
# Fix bug with ssl on armhf: https://serverfault.com/a/1045189
|
|
&& /usr/bin/c_rehash \
|
|
&& mkdir -p /onedrive/conf /onedrive/data
|
|
|
|
COPY --from=builder-onedrive /usr/local/bin/onedrive /usr/local/bin/
|
|
|
|
COPY contrib/docker/entrypoint.sh /
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|