mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-27 01:40:09 +02:00
fix codacy issues with Dockerfile
This commit is contained in:
parent
16da1b4994
commit
ebef1d88f3
|
@ -1,4 +1,4 @@
|
||||||
FROM centos
|
FROM centos:7
|
||||||
ENV GOSU_VERSION=1.11
|
ENV GOSU_VERSION=1.11
|
||||||
|
|
||||||
RUN yum install -y make git gcc libcurl-devel sqlite-devel && \
|
RUN yum install -y make git gcc libcurl-devel sqlite-devel && \
|
||||||
|
@ -15,12 +15,11 @@ 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
|
COPY onedrive /usr/src/onedrive
|
||||||
RUN . `bash install.sh -a` && \
|
RUN . "$(bash install.sh -a)" && \
|
||||||
cd /usr/src/onedrive && \
|
make -C /usr/src/onedrive install.noservice && \
|
||||||
make install.noservice && \
|
make -C /usr/src/onedrive clean
|
||||||
make clean
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
ADD entrypoint.sh /entrypoint.sh
|
|
||||||
VOLUME ["/onedrive/conf"]
|
VOLUME ["/onedrive/conf"]
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
Loading…
Reference in a new issue