Update CentOS Dockerfile (Issue #878) (#879)

* Use RPM file on CentOS as invalid signature is occurring when using install.sh
This commit is contained in:
abraunegg 2020-04-21 07:59:04 +10:00 committed by GitHub
parent 77b1e4bf6e
commit 41ad6f231f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,9 +2,8 @@ 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 && \
yum install -y http://downloads.dlang.org/releases/2.x/2.091.0/dmd-2.091.0-0.fedora.x86_64.rpm && \
rm -rf /var/cache/yum/ && \
# 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" \
@ -16,9 +15,8 @@ RUN yum install -y make git gcc libcurl-devel sqlite-devel pkg-config && \
&& gosu nobody true
RUN mkdir -p /onedrive/conf /onedrive/data
COPY . /usr/src/onedrive
RUN . "$(bash install.sh -a)" && \
cd /usr/src/onedrive/ && \
./configure && \
WORKDIR /usr/src/onedrive
RUN ./configure && \
make clean && \
make && \
make install