mirror of
https://github.com/abraunegg/onedrive
synced 2024-04-27 19:52:52 +02:00
7cf2912d2d
* Move lots of stuff into contrib directory to clean up root folder * Update autoconf files for new location of some files * Refactor README split and move to docs directory * Update INSTALL.md * Update Makefile.in * Install docs from new location * Uninstall docs correctly * Update Dockerfile * Fix up Dockerfile spacing * Move systemd stuff to contrib * Move docker specific stuff to contrib/docker, update docs * Fix Alpine and Stretch docker files * Update configure after changed file locations * Update INSTALL.md to include pkg-config as requirement * Move also entrypoint.sh to contrib/docker * Update 'min-notif-changes' to 'min-notify-changes' which was missed in PR #467 * Update to add --sync-root-files to usage.md and man page * Update usage.md to include --auth-files ARG details
29 lines
1.1 KiB
Docker
29 lines
1.1 KiB
Docker
FROM centos:7
|
|
ENV GOSU_VERSION=1.11
|
|
|
|
RUN yum install -y make git gcc libcurl-devel sqlite-devel pkg-config && \
|
|
rm -rf /var/cache/yum/ && \
|
|
curl -fsS -o install.sh https://dlang.org/install.sh && \
|
|
bash install.sh 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
|
|
COPY . /usr/src/onedrive
|
|
RUN . "$(bash install.sh -a)" && \
|
|
cd /usr/src/onedrive/ && \
|
|
./configure && \
|
|
make clean && \
|
|
make && \
|
|
make install
|
|
COPY contrib/docker/entrypoint.sh /entrypoint.sh
|
|
VOLUME ["/onedrive/conf"]
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|