From 8e3ddbac5528335436064ee2e3258ac122e1a76a Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 26 Sep 2023 15:16:00 +0100 Subject: [PATCH] fix: fix npm build step --- OliverBooth/Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/OliverBooth/Dockerfile b/OliverBooth/Dockerfile index f6a56ba..e114626 100644 --- a/OliverBooth/Dockerfile +++ b/OliverBooth/Dockerfile @@ -1,11 +1,3 @@ -# run Gulp to build the app -FROM node:12.16.1-alpine as build-stage -COPY package*.json ./ -COPY Gulpfile.js ./ -RUN npm install --global gulp-cli -RUN npm install -RUN gulp - FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 @@ -16,6 +8,14 @@ WORKDIR /src COPY ["OliverBooth/OliverBooth.csproj", "OliverBooth/"] RUN dotnet restore "OliverBooth/OliverBooth.csproj" COPY . . + +RUN apt-get update && apt-get install -y curl +RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - +RUN apt-get install -y nodejs +RUN npm i -g gulp-cli +RUN npm i +RUN gulp + WORKDIR "/src/OliverBooth" RUN dotnet build "OliverBooth.csproj" -c Release -o /app/build