fix: 解决 Docker 镜像在构建时没有权限的问题.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
FROM mcr.microsoft.com/dotnet/runtime:9.0 AS base
|
||||
USER $APP_UID
|
||||
WORKDIR /app
|
||||
|
||||
USER root
|
||||
RUN apt-get update && apt-get install -y iputils-ping
|
||||
|
||||
USER $APP_UID
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
|
||||
Reference in New Issue
Block a user