mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Add Node.js support in all the Docker containers
This commit is contained in:
@@ -4,6 +4,11 @@ COPY . /app
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Add Node.js to the container. If you don't want to wait for this to install every
|
||||||
|
# time you rebuild your container, consider creating an image that has it preinstalled.
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ COPY . /app
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Add Node.js to the container. If you don't want to wait for this to install every
|
||||||
|
# time you rebuild your container, consider creating an image that has it preinstalled.
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ COPY . /app
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Add Node.js to the container. If you don't want to wait for this to install every
|
||||||
|
# time you rebuild your container, consider creating an image that has it preinstalled.
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ COPY . /app
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Add Node.js to the container. If you don't want to wait for this to install every
|
||||||
|
# time you rebuild your container, consider creating an image that has it preinstalled.
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|||||||
Reference in New Issue
Block a user