File: Dockerfile.alpine

package info (click to toggle)
dub 1.40.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,272 kB
  • sloc: sh: 2,104; ansic: 52; xml: 37; makefile: 35
file content (23 lines) | stat: -rw-r--r-- 682 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:edge AS Builder

# DCPKG is the name of the package, DCBIN the name of the binary
# We need this because of the ldc / ldc2 disparity
ARG DCPKG
ARG DCBIN

# Build dub (and install tests dependencies in the process)
WORKDIR /root/build/
RUN apk add --no-cache bash build-base curl curl-dev dtools dub git grep rsync $DCPKG
ADD . /root/build/
RUN dub test --compiler=$DCBIN && dub build --compiler=$DCBIN

# Remove dub to avoid the risk of using the wrong binary
RUN apk del dub

# Used by the `run-unittest.sh` script
ENV DUB=/root/build/bin/dub
ENV DC=$DCBIN

# Finally, just run the test-suite
WORKDIR /root/build/test/
ENTRYPOINT [ "/root/build/test/run-unittest.sh" ]