Don't clone gitrep again for docker

This commit is contained in:
Nikolas Garofil 2019-01-24 18:18:48 +01:00
parent 16da1b4994
commit b437b9607f
3 changed files with 3 additions and 4 deletions

View file

@ -15,7 +15,7 @@ RUN yum install -y make git gcc libcurl-devel sqlite-devel && \
&& chmod +x /usr/local/bin/gosu \ && chmod +x /usr/local/bin/gosu \
&& gosu nobody true && gosu nobody true
RUN mkdir -p /onedrive/conf /onedrive/data RUN mkdir -p /onedrive/conf /onedrive/data
ADD onedrive /usr/src/onedrive ADD . /usr/src/onedrive
RUN . `bash install.sh -a` && \ RUN . `bash install.sh -a` && \
cd /usr/src/onedrive && \ cd /usr/src/onedrive && \
make install.noservice && \ make install.noservice && \

View file

@ -43,8 +43,7 @@ docker start onedrive
docker rm -f onedrive docker rm -f onedrive
``` ```
## Build instructions ## Build instructions
You can also build your own image instead of pulling the one from dockerhub:
```bash ```bash
cd docker docker build . -t onedrive
git clone https://github.com/abraunegg/onedrive
docker build . -t driveone/onedrive
``` ```