-
Notifications
You must be signed in to change notification settings - Fork 108
/
Dockerfile
76 lines (51 loc) · 1.77 KB
/
Dockerfile
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM golang:1.18beta2
## --------------------------------------
## Authorship
## --------------------------------------
LABEL org.opencontainers.image.authors="sakutz@gmail.com"
## --------------------------------------
## Apt and standard packages
## --------------------------------------
# Update the local apt cache.
RUN apt-get update -y
# Install vim.
RUN apt-get install -y vim
## --------------------------------------
## Golang
## --------------------------------------
# Install graphviz so "go tool pprof" can export images.
RUN apt-get install -y graphviz
# Install the Go debugger.
RUN go install github.com/go-delve/delve/cmd/dlv@latest
## --------------------------------------
## .NET
## --------------------------------------
# Install .NET for Linux.
RUN curl -LO https://dot.net/v1/dotnet-install.sh && \
bash dotnet-install.sh && \
rm -f dotnet-install.sh
# Configure the .NET environment variables.
ENV DOTNET_ROOT=/root/.dotnet
ENV PATH="${PATH}:${DOTNET_ROOT}:${DOTNET_ROOT}/tools"
# Install the .NET debugger.
RUN apt-get install -y lldb libicu-dev
RUN dotnet tool install -g dotnet-sos && \
dotnet-sos install
## --------------------------------------
## Java
## --------------------------------------
# Install the OpenJDK.
RUN apt-get install -y openjdk-11-jdk
# Install expect to interact with the Java debugger (jdb).
RUN apt-get install -y expect
# Configure the Java environment variables.
ARG TARGETARCH
ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-${TARGETARCH}"
## --------------------------------------
## Main
## --------------------------------------
# Create the working directory.
RUN mkdir -p /go-generics-the-hard-way
WORKDIR /go-generics-the-hard-way/
# Copy the current repo into the working directory.
COPY . /go-generics-the-hard-way/