-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (37 loc) · 938 Bytes
/
Dockerfile
File metadata and controls
46 lines (37 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Alpine Linux with Octave, R and Go
# This Dockerfile is intended to be used for testing purposes only
# It installs some basic tools, Octave, R and Go, and runs the tests of the project
FROM alpine:latest
# Install some basic tools
RUN apk add --no-cache \
bash \
curl \
git \
make \
gcc \
g++ \
libc-dev \
libpng-dev \
freetype-dev \
tiff-dev \
jpeg-dev \
fontconfig \
freetype-dev \
font-dejavu
# Install Octave and gnuplot for plotting support
RUN apk add --no-cache octave gnuplot
# Install Ghostscript
RUN apk add --no-cache ghostscript
# Install R
RUN apk add --no-cache R R-dev R-doc
# Install Go
RUN apk add --no-cache go
# Configure Go
ENV GOPATH=/go
ENV PATH=$PATH:/go/bin
# Copy dependencies into the container (no needed by the moment)
# Install Go dependencies (if any)
RUN go mod init tests
RUN go mod tidy
# Run the tests
CMD ["go", "test", "./tests/..."]