Update Dockerfile to use internal dotnet image and remove unnecessary package installations
This commit is contained in:
+1
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user