-
Notifications
You must be signed in to change notification settings - Fork 1
/
ubuntu.Dockerfile
59 lines (51 loc) · 2.16 KB
/
ubuntu.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
ARG NODE_VERSION=XX
FROM truemark/node:${NODE_VERSION}-ubuntu-jammy AS node
FROM truemark/aws-cli:ubuntu-jammy AS base
COPY --from=truemark/git:ubuntu-jammy /usr/local/ /usr/local/
COPY --from=truemark/git-crypt:ubuntu-jammy /usr/local/ /usr/local/
COPY --from=node /usr/local /usr/local/
RUN npm install -g typescript aws-cdk pnpm yarn esbuild && \
npm config set fund false --location=global
FROM base AS dotnet6
RUN apt-get update && \
apt-get install -y libicu70 --no-install-recommends && \
curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -c 6.0 && \
ln -s /root/.dotnet/dotnet /usr/local/bin/dotnet && \
apt-get clean && \
dotnet tool install -g Amazon.Lambda.Tools
ENV DOTNET_ROOT="/root/.dotnet"
ENV PATH="/root/.dotnet:${PATH}"
FROM dotnet6 AS dotnet6-jre-17
RUN apt-get update && \
apt-get install -y openjdk-17-jre-headless --no-install-recommends && \
apt-get clean
FROM base AS dotnet7
RUN apt-get update && \
apt-get install -y libicu70 --no-install-recommends && \
curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -c 7.0 && \
ln -s /root/.dotnet/dotnet /usr/local/bin/dotnet && \
apt-get clean && \
dotnet tool install -g Amazon.Lambda.Tools
ENV DOTNET_ROOT="/root/.dotnet"
ENV PATH="/root/.dotnet:${PATH}"
FROM dotnet7 AS dotnet7-jre-17
RUN apt-get update && \
apt-get install -y openjdk-17-jre-headless --no-install-recommends && \
apt-get clean
FROM base AS dotnet8
RUN apt-get update && \
apt-get install -y libicu70 --no-install-recommends && \
curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -c 8.0 && \
ln -s /root/.dotnet/dotnet /usr/local/bin/dotnet && \
apt-get clean && \
dotnet tool install -g Amazon.Lambda.Tools
ENV DOTNET_ROOT="/root/.dotnet"
ENV PATH="/root/.dotnet:${PATH}"
FROM dotnet8 AS dotnet8-jre-21
RUN apt-get update && \
apt-get install -y openjdk-21-jre-headless --no-install-recommends && \
apt-get clean
FROM base AS go
ARG TARGETARCH
RUN curl -fsSL https://golang.org/dl/$(curl -fsSL "https://go.dev/VERSION?m=text" | head -n 1).linux-${TARGETARCH}.tar.gz | tar -C /usr/local -xz && \
ln -s /usr/local/go/bin/go /usr/local/bin/go