mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-18 21:56:43 +02:00
19 lines
601 B
Plaintext
19 lines
601 B
Plaintext
|
# -*-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/
|