Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Jun 14, 2024
1 parent 764197e commit 8fde27e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ WORKDIR /app
EXPOSE 8080
EXPOSE 8081

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src

# Install Node.js
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-with-spa
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs
FROM build-with-spa AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src

COPY ["Edi.Translator.csproj", "."]
RUN dotnet restore "./Edi.Translator.csproj"
Expand Down

0 comments on commit 8fde27e

Please sign in to comment.