mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-19 22:25:03 +02:00
026809d4d1
* Separate install options for binary (make install.noservice) only and binary * Docker build files and usage documentation
26 lines
1,023 B
Docker
26 lines
1,023 B
Docker
FROM centos
|
|
ENV GOSU_VERSION=1.11
|
|
|
|
RUN yum install -y make git gcc libcurl-devel sqlite-devel && \
|
|
rm -rf /var/cache/yum/ && \
|
|
curl -fsS https://dlang.org/install.sh | bash -s dmd && \
|
|
# gosu installation
|
|
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
|
|
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64" \
|
|
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64.asc" \
|
|
&& gpg --verify /usr/local/bin/gosu.asc \
|
|
&& rm /usr/local/bin/gosu.asc \
|
|
&& rm -r /root/.gnupg/ \
|
|
&& chmod +x /usr/local/bin/gosu \
|
|
&& gosu nobody true
|
|
RUN mkdir -p /onedrive/conf /onedrive/data
|
|
ADD onedrive /usr/src/onedrive
|
|
RUN . /root/dlang/dmd-2.083.0/activate && \
|
|
cd /usr/src/onedrive && \
|
|
make install.noservice && \
|
|
make clean
|
|
ADD entrypoint.sh /entrypoint.sh
|
|
VOLUME ["/onedrive/conf"]
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|