Update Dockerfile to use internal dotnet image and remove unnecessary package installations

This commit is contained in:
Anduin Xue
2025-01-26 05:02:49 +00:00
parent f63226ae14
commit bb0fafbde9
+1 -4
View File
@@ -13,7 +13,7 @@ RUN npm install --prefix "${CSPROJ_PATH}wwwroot" --loglevel verbose
# ============================
# Prepare Building Environment
FROM hub.aiursoft.cn/mcr.microsoft.com/dotnet/sdk:9.0 AS build-env
FROM hub.aiursoft.cn/aiursoft/internalimages/dotnet AS build-env
ARG CSPROJ_PATH
ARG PROJ_NAME
WORKDIR /src
@@ -30,9 +30,6 @@ ARG PROJ_NAME
WORKDIR /app
COPY --from=build-env /app .
# Install wget and curl
RUN apt update; DEBIAN_FRONTEND=noninteractive apt install -y wget curl
# Edit appsettings.json
RUN sed -i 's/DataSource=app.db/DataSource=\/data\/app.db/g' appsettings.json
RUN sed -i 's/\/tmp\/data/\/data/g' appsettings.json