File tree Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -143,12 +143,19 @@ RUN apt-get update && apt-get install -y \
143
143
mono-xbuild
144
144
145
145
# D dependencies
146
- RUN apt-get update && apt-get install -y \
147
- gcc-multilib \
148
- xdg-utils \
149
- && curl -sSL http://downloads.dlang.org/releases/2.x/2.070.0/dmd_2.070.0-0_amd64.deb -o /tmp/dmd_2.070.0-0_amd64.deb && \
146
+ RUN apt-get update && apt-get install -y --no-install-recommends xdg-utils && \
147
+ curl -sSL http://downloads.dlang.org/releases/2.x/2.070.0/dmd_2.070.0-0_amd64.deb -o /tmp/dmd_2.070.0-0_amd64.deb && \
150
148
dpkg -i /tmp/dmd_2.070.0-0_amd64.deb && \
151
- rm /tmp/dmd_2.070.0-0_amd64.deb
149
+ rm /tmp/dmd_2.070.0-0_amd64.deb && \
150
+ curl -sSL https://github.com/D-Programming-Deimos/openssl/archive/master.tar.gz| tar xz && \
151
+ curl -sSL https://github.com/D-Programming-Deimos/libevent/archive/master.tar.gz| tar xz && \
152
+ mkdir -p /usr/include/dmd/druntime/import/deimos /usr/include/dmd/druntime/import/C && \
153
+ mv libevent-master/deimos/* openssl-master/deimos/* /usr/include/dmd/druntime/import/deimos/ && \
154
+ mv libevent-master/C/* openssl-master/C/* /usr/include/dmd/druntime/import/C/ && \
155
+ rm -rf libevent-master openssl-master && \
156
+ echo 'gcc -Wl,--no-as-needed $*' > /usr/local/bin/gcc-dmd && \
157
+ chmod 755 /usr/local/bin/gcc-dmd && \
158
+ echo 'CC=/usr/local/bin/gcc-dmd' >> /etc/dmd.conf
152
159
153
160
# Dart dependencies
154
161
RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
Original file line number Diff line number Diff line change @@ -151,12 +151,19 @@ RUN apt-get update && apt-get install -y \
151
151
mono-xbuild
152
152
153
153
# D dependencies
154
- RUN apt-get update && apt-get install -y \
155
- gcc-multilib \
156
- xdg-utils \
157
- && curl -sSL http://downloads.dlang.org/releases/2.x/2.070.0/dmd_2.070.0-0_amd64.deb -o /tmp/dmd_2.070.0-0_amd64.deb && \
154
+ RUN apt-get update && apt-get install -y --no-install-recommends xdg-utils && \
155
+ curl -sSL http://downloads.dlang.org/releases/2.x/2.070.0/dmd_2.070.0-0_amd64.deb -o /tmp/dmd_2.070.0-0_amd64.deb && \
158
156
dpkg -i /tmp/dmd_2.070.0-0_amd64.deb && \
159
- rm /tmp/dmd_2.070.0-0_amd64.deb
157
+ rm /tmp/dmd_2.070.0-0_amd64.deb && \
158
+ curl -sSL https://github.com/D-Programming-Deimos/openssl/archive/master.tar.gz| tar xz && \
159
+ curl -sSL https://github.com/D-Programming-Deimos/libevent/archive/master.tar.gz| tar xz && \
160
+ mkdir -p /usr/include/dmd/druntime/import/deimos /usr/include/dmd/druntime/import/C && \
161
+ mv libevent-master/deimos/* openssl-master/deimos/* /usr/include/dmd/druntime/import/deimos/ && \
162
+ mv libevent-master/C/* openssl-master/C/* /usr/include/dmd/druntime/import/C/ && \
163
+ rm -rf libevent-master openssl-master && \
164
+ echo 'gcc -Wl,--no-as-needed $*' > /usr/local/bin/gcc-dmd && \
165
+ chmod 755 /usr/local/bin/gcc-dmd && \
166
+ echo 'CC=/usr/local/bin/gcc-dmd' >> /etc/dmd.conf
160
167
161
168
# Dart dependencies
162
169
RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
You can’t perform that action at this time.
0 commit comments