ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true |
RUN /bin/sh -c apk add --upgrade --no-cache ca-certificates-bundle libgcc libssl3 libstdc++ zlib # buildkit |
RUN /bin/sh -c addgroup --gid=$APP_UID app && adduser --uid=$APP_UID --ingroup=app --disabled-password app # buildkit |
ENV DOTNET_VERSION=8.0.11 |
RUN /bin/sh -c wget -O dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Runtime/$DOTNET_VERSION/dotnet-runtime-$DOTNET_VERSION-linux-musl-x64.tar.gz && dotnet_sha512='ff00d19ced7ea204caccc6c11c484e5a1ecdb9ffa9ac9a6b8ed2f7f7c9089aad098e5b41d2ebe5c24cbbc0956df64032b62ed7277fac3d3b64b742c50209be61' && echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - && mkdir -p /usr/share/dotnet && tar -oxzf dotnet.tar.gz -C /usr/share/dotnet && rm dotnet.tar.gz && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # buildkit |
WORKDIR /app |
WORKDIR /app |
COPY /app . # buildkit |
USER 1654 |
ENTRYPOINT ["./Continuity.AuthServer"] |