mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-30 12:32:41 +02:00
460596dd36
* Add additional Docker container builds utilising a smaller OS footprint * Resolve compiling with LDC on Alpine as musl lacks some standard interfaces
19 lines
601 B
Docker
19 lines
601 B
Docker
# -*-Dockerfile-*-
|
|
FROM debian:stretch
|
|
RUN apt update && \
|
|
apt install -y build-essential curl libcurl4-openssl-dev libsqlite3-dev
|
|
RUN curl -fsS -o install.sh https://dlang.org/install.sh && \
|
|
bash install.sh dmd
|
|
COPY . /usr/src/onedrive
|
|
RUN . "$(bash install.sh -a)" && \
|
|
make -C /usr/src/onedrive install.noservice
|
|
|
|
FROM debian:stretch-slim
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
RUN apt update && \
|
|
apt install -y gosu libcurl3 libsqlite3-0 && \
|
|
rm -rf /var/*/apt && \
|
|
mkdir -p /onedrive/conf /onedrive/data
|
|
COPY entrypoint.sh /
|
|
COPY --from=0 /usr/local/bin/onedrive /usr/local/bin/
|