| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:3f78aa860931e0853077f09eb31eddbeeef8a9dd70977305b4876aa176770721 in / |
| CMD ["/bin/bash"] |
| ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates libc6 libgcc-s1 libicu74 libssl3t64 libstdc++6 tzdata tzdata-legacy && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c groupadd --gid=$APP_UID app && useradd --no-log-init --uid=$APP_UID --gid=$APP_UID --create-home app # buildkit |
| ENV DOTNET_VERSION=10.0.3 |
| COPY /dotnet /usr/share/dotnet # buildkit |
| RUN /bin/sh -c ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # buildkit |
| ENV ASPNET_VERSION=10.0.3 |
| COPY /dotnet /usr/share/dotnet # buildkit |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c apt-get install -y fontconfig wget gnupg --no-install-recommends # buildkit |
| RUN /bin/sh -c wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg # buildkit |
| RUN /bin/sh -c echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y google-chrome-stable --no-install-recommends && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c mkdir -p /usr/share/fonts/truetype/msttcorefonts/ # buildkit |
| COPY lovepdf/fonts/tahoma*ttf /usr/share/fonts/truetype/msttcorefonts/ # buildkit |
| RUN /bin/sh -c chmod 644 /usr/share/fonts/truetype/msttcorefonts/tahoma* # buildkit |
| RUN /bin/sh -c fc-cache -v # buildkit |
| WORKDIR /app |
| COPY /app/lovepdf/out ./ # buildkit |
| RUN /bin/sh -c mkdir -p ./wwwroot/preview # buildkit |
| COPY /app/lovepdf/appsettings_docker.json ./appsettings.json # buildkit |
| COPY /app/lovepdf/Scripts ./Scripts # buildkit |
| RUN /bin/sh -c rm -rf ./wwwroot/lib # buildkit |
| COPY /app/lovepdf/wwwroot/lib ./wwwroot/lib # buildkit |
| ARG VERSION=0.9.49 |
| RUN |1 VERSION=0.9.49 /bin/sh -c echo $VERSION > /app/wwwroot/lib/version.txt # buildkit |
| CMD ["dotnet" "LovePDF.dll"] |