且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为ASP.NET Core 2.1 Angular项目配置Dockerfile

更新时间:2023-02-16 14:06:52

在microsoft / dotnet:2.1-aspnetcore-未安装运行时容器映像npm / nodejs。要将其安装在容器中,请更新docker文件

In the microsoft/dotnet:2.1-aspnetcore-runtime container image npm/nodejs is not installed. To install this in the container update the docker file

FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base

# Setup NodeJs
RUN apt-get update && \
    apt-get install -y wget && \
    apt-get install -y gnupg2 && \
    wget -qO- https://deb.nodesource.com/setup_6.x | bash - && \
    apt-get install -y build-essential nodejs
# End setup

WORKDIR /app
EXPOSE 80

只有Angular CLI实时重装无法正常工作。

Only Angular CLI live reload is not working.