fix dockerfile build error
This commit is contained in:
@@ -6,8 +6,9 @@ RUN apt-get update && apt-get install -y nodejs npm python3 make g++ && rm -rf /
|
||||
|
||||
COPY ./src/ .
|
||||
|
||||
# Install frontend dependencies before dotnet build
|
||||
RUN npm install --prefix ./GreenHome.Web
|
||||
# Use npm ci for clean install based on package-lock.json
|
||||
RUN cd ./GreenHome.Web && \
|
||||
npm ci
|
||||
|
||||
RUN dotnet restore --verbosity detailed
|
||||
RUN dotnet publish -c Release -o /app
|
||||
|
||||
Reference in New Issue
Block a user