From f8c00b5b4d574323443a111681a36712c7bbfad0 Mon Sep 17 00:00:00 2001 From: moreal Date: Thu, 7 Dec 2023 06:25:12 +0900 Subject: [PATCH] chore: remove unused Dockerfiles --- Dockerfile.amd64 | 32 -------------------------------- Dockerfile.arm64v8 | 32 -------------------------------- 2 files changed, 64 deletions(-) delete mode 100644 Dockerfile.amd64 delete mode 100644 Dockerfile.arm64v8 diff --git a/Dockerfile.amd64 b/Dockerfile.amd64 deleted file mode 100644 index 3dbce3ebde..0000000000 --- a/Dockerfile.amd64 +++ /dev/null @@ -1,32 +0,0 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0-jammy AS build-env -WORKDIR /app - -# Copy csproj and restore as distinct layers -COPY ./Lib9c/Lib9c.csproj ./Lib9c/ -COPY ./.Libplanet.Extensions.RemoteActionEvaluator/Libplanet.Extensions.RemoteActionEvaluator.csproj ./Libplanet.Extensions.RemoteActionEvaluator/ -RUN dotnet restore Lib9c -RUN dotnet restore Libplanet.Extensions.RemoteActionEvaluator - -# Copy everything else and build -COPY . ./ -RUN dotnet publish .Lib9c.StateService/Lib9c.StateService.csproj \ - -c Release \ - -r linux-x64 \ - -o out \ - --self-contained - -# Build runtime image -FROM mcr.microsoft.com/dotnet/aspnet:6.0 -WORKDIR /app -RUN apt-get update && apt-get install -y libc6-dev -COPY --from=build-env /app/out . - -# Install native deps & utilities for production -RUN apt-get update \ - && apt-get install -y --allow-unauthenticated \ - libc6-dev jq curl \ - && rm -rf /var/lib/apt/lists/* - -VOLUME /data - -ENTRYPOINT ["dotnet", "Lib9c.StateService.dll"] diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 deleted file mode 100644 index 32223cc5d9..0000000000 --- a/Dockerfile.arm64v8 +++ /dev/null @@ -1,32 +0,0 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0-jammy AS build-env -WORKDIR /app - -# Copy csproj and restore as distinct layers -COPY ./Lib9c/Lib9c.csproj ./Lib9c/ -COPY ./.Libplanet.Extensions.RemoteActionEvaluator/Libplanet.Extensions.RemoteActionEvaluator.csproj ./Libplanet.Extensions.RemoteActionEvaluator/ -RUN dotnet restore Lib9c -RUN dotnet restore Libplanet.Extensions.RemoteActionEvaluator - -# Copy everything else and build -COPY . ./ -RUN dotnet publish .Lib9c.StateService/Lib9c.StateService.csproj \ - -c Release \ - -r linux-arm64 \ - -o out \ - --self-contained - -# Build runtime image -FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-arm64v8 -WORKDIR /app -RUN apt-get update && apt-get install -y libc6-dev -COPY --from=build-env /app/out . - -# Install native deps & utilities for production -RUN apt-get update \ - && apt-get install -y --allow-unauthenticated \ - libc6-dev jq curl \ - && rm -rf /var/lib/apt/lists/* - -VOLUME /data - -ENTRYPOINT ["dotnet", "Lib9c.StateService.dll"]