mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-19 14:16:36 +02:00
fix activation of dmd (#285)
Currently the version of dmd is hard-coded, but has already changed, and building docker images now fail. Re-using the install.sh allows to get the install path and activation script.
This commit is contained in:
parent
91aaf91aa6
commit
b46d3d62b1
|
@ -3,7 +3,8 @@ 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 && \
|
||||||
rm -rf /var/cache/yum/ && \
|
rm -rf /var/cache/yum/ && \
|
||||||
curl -fsS https://dlang.org/install.sh | bash -s dmd && \
|
curl -fsS -o install.sh https://dlang.org/install.sh && \
|
||||||
|
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" \
|
||||||
|
@ -15,7 +16,7 @@ RUN yum install -y make git gcc libcurl-devel sqlite-devel && \
|
||||||
&& 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 onedrive /usr/src/onedrive
|
||||||
RUN . /root/dlang/dmd-2.083.0/activate && \
|
RUN . `bash install.sh -a` && \
|
||||||
cd /usr/src/onedrive && \
|
cd /usr/src/onedrive && \
|
||||||
make install.noservice && \
|
make install.noservice && \
|
||||||
make clean
|
make clean
|
||||||
|
|
Loading…
Reference in a new issue