mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-19 14:16:36 +02:00
* Use RPM file on CentOS as invalid signature is occurring when using install.sh
This commit is contained in:
parent
77b1e4bf6e
commit
41ad6f231f
|
@ -2,9 +2,8 @@ FROM centos:7
|
||||||
ENV GOSU_VERSION=1.11
|
ENV GOSU_VERSION=1.11
|
||||||
|
|
||||||
RUN yum install -y make git gcc libcurl-devel sqlite-devel pkg-config && \
|
RUN yum install -y make git gcc libcurl-devel sqlite-devel pkg-config && \
|
||||||
rm -rf /var/cache/yum/ && \
|
yum install -y http://downloads.dlang.org/releases/2.x/2.091.0/dmd-2.091.0-0.fedora.x86_64.rpm && \
|
||||||
curl -fsS -o install.sh https://dlang.org/install.sh && \
|
rm -rf /var/cache/yum/ && \
|
||||||
bash install.sh dmd && \
|
|
||||||
# gosu installation
|
# gosu installation
|
||||||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
|
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 -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64" \
|
||||||
|
@ -16,9 +15,8 @@ RUN yum install -y make git gcc libcurl-devel sqlite-devel pkg-config && \
|
||||||
&& gosu nobody true
|
&& gosu nobody true
|
||||||
RUN mkdir -p /onedrive/conf /onedrive/data
|
RUN mkdir -p /onedrive/conf /onedrive/data
|
||||||
COPY . /usr/src/onedrive
|
COPY . /usr/src/onedrive
|
||||||
RUN . "$(bash install.sh -a)" && \
|
WORKDIR /usr/src/onedrive
|
||||||
cd /usr/src/onedrive/ && \
|
RUN ./configure && \
|
||||||
./configure && \
|
|
||||||
make clean && \
|
make clean && \
|
||||||
make && \
|
make && \
|
||||||
make install
|
make install
|
||||||
|
|
Loading…
Reference in a new issue