Fix a typo with Dockerfile AS.

This commit is contained in:
Anduin Xue
2024-07-07 14:31:34 +00:00
parent 7d32de3d12
commit 3ab22373ff
+3 -3
View File
@@ -20,12 +20,12 @@ WORKDIR /src
COPY --from=npm-env /src .
# Build
RUN dotnet publish ${CSPROJ_PATH}${PROJ_NAME}.csproj --configuration ReleASe --no-self-contained --runtime linux-x64 --output /app
RUN dotnet publish ${CSPROJ_PATH}${PROJ_NAME}.csproj --configuration Release --no-self-contained --runtime linux-x64 --output /app
RUN cp -r ${CSPROJ_PATH}/wwwroot/* /app/wwwroot
# ============================
# Prepare Runtime Environment
FROM hub.aiursoft.cn/mcr.microsoft.com/dotnet/ASpnet:8.0
FROM hub.aiursoft.cn/mcr.microsoft.com/dotnet/aspnet:8.0
ARG PROJ_NAME
WORKDIR /app
COPY --from=build-env /app .
@@ -46,7 +46,7 @@ ENV VOL_SETTINGS=/data/appsettings.json
ENV DLL_NAME=${PROJ_NAME}.dll
#ENTRYPOINT dotnet $DLL_NAME --urls http://*:5000
ENTRYPOINT ["/bin/bASh", "-c", "\
ENTRYPOINT ["/bin/bash", "-c", "\
if [ ! -f \"$VOL_SETTINGS\" ]; then \
cp $SRC_SETTINGS $VOL_SETTINGS; \
fi && \