33 lines
1.9 KiB
Docker
33 lines
1.9 KiB
Docker
FROM docker.io/bitnami/minideb:buster
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV HOME="/app" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-10" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages build-essential ca-certificates curl git gzip libc6 libcap2-bin libcom-err2 libcurl4 libffi6 libgcc1 libgcrypt20 libgmp10 libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed4 libicu-dev libidn2-0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblttng-ust-dev libnettle6 libnghttp2-14 libp11-kit0 libpsl5 librtmp1 libsasl2-2 libsqlite3-dev libssh2-1 libssl-dev libssl1.1 libstdc++6 libtasn1-6 libunistring2 pkg-config procps tar unzip wget zlib1g
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/aspnet-core-3.1.22-1-linux-amd64-debian-10.tar.gz && \
|
|
echo "695712e28b4952ffe7ee89974133b843176658a29b2c9814e910cd7cbc4ef2ff /tmp/bitnami/pkg/cache/aspnet-core-3.1.22-1-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/aspnet-core-3.1.22-1-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/aspnet-core-3.1.22-1-linux-amd64-debian-10.tar.gz
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs && \
|
|
sed -i 's/^PASS_MIN_DAYS.*/PASS_MIN_DAYS 0/' /etc/login.defs && \
|
|
sed -i 's/sha512/sha512 minlen=8/' /etc/pam.d/common-password
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/aspnet-core/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="aspnet-core" \
|
|
BITNAMI_IMAGE_VERSION="3.1.22-debian-10-r43" \
|
|
DOTNET_CLI_HOME="/app" \
|
|
DOTNET_ROOT="/opt/bitnami/aspnet-core/bin" \
|
|
PATH="/opt/bitnami/aspnet-core/bin:$PATH"
|
|
|
|
WORKDIR /app
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/aspnet-core/entrypoint.sh" ]
|
|
CMD [ "/bin/bash" ]
|