Skip to content

Commit f7c37c4

Browse files
committed
use node:16, not ubuntu+npm+node
1 parent 8409484 commit f7c37c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
FROM ubuntu:rolling as nodebuilder
1+
FROM node:16 as nodebuilder
22
ENV DEBIAN_FRONTEND=noninteractive
3-
RUN apt-get -y update
4-
RUN apt-get -y install nodejs npm
53
WORKDIR /js
64
COPY fluidsignalr/ClientApp/package*.json /js/
75
RUN npm ci
@@ -23,7 +21,7 @@ WORKDIR /app/fluidsignalr
2321

2422
# Copy the js dist from the nodebuilder stage; the csproj has a target to copy it over to the out dir
2523
COPY --from=nodebuilder /js/dist /app/fluidsignalr/ClientApp/dist
26-
RUN dotnet publish -c Release -o out
24+
RUN dotnet publish -c Release -o out
2725

2826
###
2927
### Final runtime image

0 commit comments

Comments
 (0)