2019-02-16 20:13:19 +01:00
|
|
|
# -*-Dockerfile-*-
|
|
|
|
FROM debian:stretch
|
|
|
|
RUN apt update && \
|
2019-06-11 10:40:05 +02:00
|
|
|
apt install -y build-essential curl libcurl4-openssl-dev libsqlite3-dev pkg-config
|
2019-02-16 20:13:19 +01:00
|
|
|
RUN curl -fsS -o install.sh https://dlang.org/install.sh && \
|
|
|
|
bash install.sh dmd
|
|
|
|
COPY . /usr/src/onedrive
|
|
|
|
RUN . "$(bash install.sh -a)" && \
|
2019-06-11 10:40:05 +02:00
|
|
|
cd /usr/src/onedrive/ && \
|
|
|
|
./configure && \
|
|
|
|
make clean && \
|
|
|
|
make && \
|
|
|
|
make install
|
2019-02-16 20:13:19 +01:00
|
|
|
|
|
|
|
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
|
2019-06-11 10:40:05 +02:00
|
|
|
COPY contrib/docker/entrypoint.sh /
|
2019-02-16 20:13:19 +01:00
|
|
|
COPY --from=0 /usr/local/bin/onedrive /usr/local/bin/
|