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 \
&& gosu nobody true
RUN mkdir -p /onedrive/conf /onedrive/data
ADD onedrive /usr/src/onedrive
ADD . /usr/src/onedrive
RUN . `bash install.sh -a` && \
cd /usr/src/onedrive && \
make install.noservice && \

View file

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