Remove unused AOT Dockerfiles from main (#5476)
This commit is contained in:
Родитель
39f6e74e3a
Коммит
a6e5f19df1
|
@ -1,29 +0,0 @@
|
|||
FROM amd64/alpine:3.18
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
APP_UID=1654 \
|
||||
# Configure web servers to bind to port 8080 when present
|
||||
ASPNETCORE_HTTP_PORTS=8080 \
|
||||
# Enable detection of running in a container
|
||||
DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
ca-certificates-bundle \
|
||||
\
|
||||
# .NET dependencies
|
||||
libgcc \
|
||||
libssl3 \
|
||||
zlib
|
||||
|
||||
# Create a non-root user and group
|
||||
RUN addgroup \
|
||||
--gid=$APP_UID \
|
||||
app \
|
||||
&& adduser \
|
||||
--uid=$APP_UID \
|
||||
--ingroup=app \
|
||||
--disabled-password \
|
||||
app
|
|
@ -1,29 +0,0 @@
|
|||
FROM arm32v7/alpine:3.18
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
APP_UID=1654 \
|
||||
# Configure web servers to bind to port 8080 when present
|
||||
ASPNETCORE_HTTP_PORTS=8080 \
|
||||
# Enable detection of running in a container
|
||||
DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
ca-certificates-bundle \
|
||||
\
|
||||
# .NET dependencies
|
||||
libgcc \
|
||||
libssl3 \
|
||||
zlib
|
||||
|
||||
# Create a non-root user and group
|
||||
RUN addgroup \
|
||||
--gid=$APP_UID \
|
||||
app \
|
||||
&& adduser \
|
||||
--uid=$APP_UID \
|
||||
--ingroup=app \
|
||||
--disabled-password \
|
||||
app
|
|
@ -1,29 +0,0 @@
|
|||
FROM arm64v8/alpine:3.18
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
APP_UID=1654 \
|
||||
# Configure web servers to bind to port 8080 when present
|
||||
ASPNETCORE_HTTP_PORTS=8080 \
|
||||
# Enable detection of running in a container
|
||||
DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
ca-certificates-bundle \
|
||||
\
|
||||
# .NET dependencies
|
||||
libgcc \
|
||||
libssl3 \
|
||||
zlib
|
||||
|
||||
# Create a non-root user and group
|
||||
RUN addgroup \
|
||||
--gid=$APP_UID \
|
||||
app \
|
||||
&& adduser \
|
||||
--uid=$APP_UID \
|
||||
--ingroup=app \
|
||||
--disabled-password \
|
||||
app
|
|
@ -1,29 +0,0 @@
|
|||
FROM amd64/alpine:3.19
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
APP_UID=1654 \
|
||||
# Configure web servers to bind to port 8080 when present
|
||||
ASPNETCORE_HTTP_PORTS=8080 \
|
||||
# Enable detection of running in a container
|
||||
DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
ca-certificates-bundle \
|
||||
\
|
||||
# .NET dependencies
|
||||
libgcc \
|
||||
libssl3 \
|
||||
zlib
|
||||
|
||||
# Create a non-root user and group
|
||||
RUN addgroup \
|
||||
--gid=$APP_UID \
|
||||
app \
|
||||
&& adduser \
|
||||
--uid=$APP_UID \
|
||||
--ingroup=app \
|
||||
--disabled-password \
|
||||
app
|
|
@ -1,29 +0,0 @@
|
|||
FROM arm32v7/alpine:3.19
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
APP_UID=1654 \
|
||||
# Configure web servers to bind to port 8080 when present
|
||||
ASPNETCORE_HTTP_PORTS=8080 \
|
||||
# Enable detection of running in a container
|
||||
DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
ca-certificates-bundle \
|
||||
\
|
||||
# .NET dependencies
|
||||
libgcc \
|
||||
libssl3 \
|
||||
zlib
|
||||
|
||||
# Create a non-root user and group
|
||||
RUN addgroup \
|
||||
--gid=$APP_UID \
|
||||
app \
|
||||
&& adduser \
|
||||
--uid=$APP_UID \
|
||||
--ingroup=app \
|
||||
--disabled-password \
|
||||
app
|
|
@ -1,29 +0,0 @@
|
|||
FROM arm64v8/alpine:3.19
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
APP_UID=1654 \
|
||||
# Configure web servers to bind to port 8080 when present
|
||||
ASPNETCORE_HTTP_PORTS=8080 \
|
||||
# Enable detection of running in a container
|
||||
DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
ca-certificates-bundle \
|
||||
\
|
||||
# .NET dependencies
|
||||
libgcc \
|
||||
libssl3 \
|
||||
zlib
|
||||
|
||||
# Create a non-root user and group
|
||||
RUN addgroup \
|
||||
--gid=$APP_UID \
|
||||
app \
|
||||
&& adduser \
|
||||
--uid=$APP_UID \
|
||||
--ingroup=app \
|
||||
--disabled-password \
|
||||
app
|
|
@ -1,55 +0,0 @@
|
|||
FROM amd64/golang:1.20 as chisel
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
ca-certificates \
|
||||
file
|
||||
|
||||
RUN go install github.com/canonical/chisel/cmd/chisel@v0.9.1 \
|
||||
&& wget -O /usr/bin/chisel-wrapper https://raw.githubusercontent.com/canonical/rocks-toolbox/v1.1.2/chisel-wrapper \
|
||||
&& chmod 755 /usr/bin/chisel-wrapper
|
||||
|
||||
RUN groupadd \
|
||||
--gid=1654 \
|
||||
app \
|
||||
&& useradd -l \
|
||||
--uid=1654 \
|
||||
--gid=1654 \
|
||||
--shell /bin/false \
|
||||
app \
|
||||
&& install -d -m 0755 -o 1654 -g 1654 "/rootfs/home/app" \
|
||||
&& mkdir -p "/rootfs/etc" \
|
||||
&& rootOrAppRegex='^\(root\|app\):' \
|
||||
&& cat /etc/passwd | grep $rootOrAppRegex > "/rootfs/etc/passwd" \
|
||||
&& cat /etc/group | grep $rootOrAppRegex > "/rootfs/etc/group"
|
||||
|
||||
RUN mkdir -p /rootfs/var/lib/dpkg/ \
|
||||
&& chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
|
||||
--release ubuntu-24.04 --root /rootfs \
|
||||
base-files_base \
|
||||
base-files_release-info \
|
||||
ca-certificates_data \
|
||||
libc6_libs \
|
||||
libgcc-s1_libs \
|
||||
libssl3t64_libs \
|
||||
zlib1g_libs
|
||||
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=chisel /rootfs /
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
APP_UID=1654 \
|
||||
# Configure web servers to bind to port 8080 when present
|
||||
ASPNETCORE_HTTP_PORTS=8080 \
|
||||
# Enable detection of running in a container
|
||||
DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
|
||||
|
||||
# Workaround for https://github.com/moby/moby/issues/38710
|
||||
COPY --from=chisel --chown=$APP_UID:$APP_UID /rootfs/home/app /home/app
|
||||
|
||||
USER $APP_UID
|
|
@ -1,55 +0,0 @@
|
|||
FROM arm32v7/golang:1.20 as chisel
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
ca-certificates \
|
||||
file
|
||||
|
||||
RUN go install github.com/canonical/chisel/cmd/chisel@v0.9.1 \
|
||||
&& wget -O /usr/bin/chisel-wrapper https://raw.githubusercontent.com/canonical/rocks-toolbox/v1.1.2/chisel-wrapper \
|
||||
&& chmod 755 /usr/bin/chisel-wrapper
|
||||
|
||||
RUN groupadd \
|
||||
--gid=1654 \
|
||||
app \
|
||||
&& useradd -l \
|
||||
--uid=1654 \
|
||||
--gid=1654 \
|
||||
--shell /bin/false \
|
||||
app \
|
||||
&& install -d -m 0755 -o 1654 -g 1654 "/rootfs/home/app" \
|
||||
&& mkdir -p "/rootfs/etc" \
|
||||
&& rootOrAppRegex='^\(root\|app\):' \
|
||||
&& cat /etc/passwd | grep $rootOrAppRegex > "/rootfs/etc/passwd" \
|
||||
&& cat /etc/group | grep $rootOrAppRegex > "/rootfs/etc/group"
|
||||
|
||||
RUN mkdir -p /rootfs/var/lib/dpkg/ \
|
||||
&& chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
|
||||
--release ubuntu-24.04 --root /rootfs \
|
||||
base-files_base \
|
||||
base-files_release-info \
|
||||
ca-certificates_data \
|
||||
libc6_libs \
|
||||
libgcc-s1_libs \
|
||||
libssl3t64_libs \
|
||||
zlib1g_libs
|
||||
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=chisel /rootfs /
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
APP_UID=1654 \
|
||||
# Configure web servers to bind to port 8080 when present
|
||||
ASPNETCORE_HTTP_PORTS=8080 \
|
||||
# Enable detection of running in a container
|
||||
DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
|
||||
|
||||
# Workaround for https://github.com/moby/moby/issues/38710
|
||||
COPY --from=chisel --chown=$APP_UID:$APP_UID /rootfs/home/app /home/app
|
||||
|
||||
USER $APP_UID
|
|
@ -1,55 +0,0 @@
|
|||
FROM arm64v8/golang:1.20 as chisel
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
ca-certificates \
|
||||
file
|
||||
|
||||
RUN go install github.com/canonical/chisel/cmd/chisel@v0.9.1 \
|
||||
&& wget -O /usr/bin/chisel-wrapper https://raw.githubusercontent.com/canonical/rocks-toolbox/v1.1.2/chisel-wrapper \
|
||||
&& chmod 755 /usr/bin/chisel-wrapper
|
||||
|
||||
RUN groupadd \
|
||||
--gid=1654 \
|
||||
app \
|
||||
&& useradd -l \
|
||||
--uid=1654 \
|
||||
--gid=1654 \
|
||||
--shell /bin/false \
|
||||
app \
|
||||
&& install -d -m 0755 -o 1654 -g 1654 "/rootfs/home/app" \
|
||||
&& mkdir -p "/rootfs/etc" \
|
||||
&& rootOrAppRegex='^\(root\|app\):' \
|
||||
&& cat /etc/passwd | grep $rootOrAppRegex > "/rootfs/etc/passwd" \
|
||||
&& cat /etc/group | grep $rootOrAppRegex > "/rootfs/etc/group"
|
||||
|
||||
RUN mkdir -p /rootfs/var/lib/dpkg/ \
|
||||
&& chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
|
||||
--release ubuntu-24.04 --root /rootfs \
|
||||
base-files_base \
|
||||
base-files_release-info \
|
||||
ca-certificates_data \
|
||||
libc6_libs \
|
||||
libgcc-s1_libs \
|
||||
libssl3t64_libs \
|
||||
zlib1g_libs
|
||||
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=chisel /rootfs /
|
||||
|
||||
ENV \
|
||||
# UID of the non-root user 'app'
|
||||
APP_UID=1654 \
|
||||
# Configure web servers to bind to port 8080 when present
|
||||
ASPNETCORE_HTTP_PORTS=8080 \
|
||||
# Enable detection of running in a container
|
||||
DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Set the invariant mode since ICU package isn't included (see https://github.com/dotnet/announcements/issues/20)
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
|
||||
|
||||
# Workaround for https://github.com/moby/moby/issues/38710
|
||||
COPY --from=chisel --chown=$APP_UID:$APP_UID /rootfs/home/app /home/app
|
||||
|
||||
USER $APP_UID
|
|
@ -1,8 +0,0 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
ARG REPO=mcr.microsoft.com/dotnet/sdk
|
||||
FROM $REPO:8.0.204-alpine3.18-amd64
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
build-base \
|
||||
clang \
|
||||
zlib-dev
|
|
@ -1,8 +0,0 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
ARG REPO=mcr.microsoft.com/dotnet/sdk
|
||||
FROM $REPO:8.0.204-alpine3.18-arm64v8
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
build-base \
|
||||
clang \
|
||||
zlib-dev
|
|
@ -1,8 +0,0 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
ARG REPO=mcr.microsoft.com/dotnet/sdk
|
||||
FROM $REPO:8.0.100-alpine3.19-amd64
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
build-base \
|
||||
clang \
|
||||
zlib-dev
|
|
@ -1,8 +0,0 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
ARG REPO=mcr.microsoft.com/dotnet/sdk
|
||||
FROM $REPO:8.0.100-alpine3.19-arm64v8
|
||||
|
||||
RUN apk add --upgrade --no-cache \
|
||||
build-base \
|
||||
clang \
|
||||
zlib-dev
|
|
@ -1,23 +0,0 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
ARG REPO=mcr.microsoft.com/dotnet/sdk
|
||||
FROM $REPO:8.0.204-noble-amd64
|
||||
|
||||
COPY <<EOF /etc/apt/sources.list.d/arm64.sources
|
||||
Types: deb
|
||||
URIs: http://ports.ubuntu.com/ubuntu-ports/
|
||||
Suites: noble noble-updates
|
||||
Components: main restricted
|
||||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||
Architectures: arm64
|
||||
EOF
|
||||
|
||||
RUN sed -i '/Signed-By/ a Architectures: amd64' /etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& dpkg --add-architecture arm64 \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
clang \
|
||||
gcc-aarch64-linux-gnu \
|
||||
llvm \
|
||||
zlib1g-dev \
|
||||
zlib1g-dev:arm64 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
|
@ -1,23 +0,0 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
ARG REPO=mcr.microsoft.com/dotnet/sdk
|
||||
FROM $REPO:8.0.204-noble-arm64v8
|
||||
|
||||
COPY <<EOF /etc/apt/sources.list.d/amd64.sources
|
||||
Types: deb
|
||||
URIs: http://archive.ubuntu.com/ubuntu/
|
||||
Suites: noble noble-updates
|
||||
Components: main restricted
|
||||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||
Architectures: amd64
|
||||
EOF
|
||||
|
||||
RUN sed -i '/Signed-By/ a Architectures: arm64' /etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& dpkg --add-architecture amd64 \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
clang \
|
||||
gcc-x86-64-linux-gnu \
|
||||
llvm \
|
||||
zlib1g-dev \
|
||||
zlib1g-dev:amd64 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
Загрузка…
Ссылка в новой задаче