Skip to content

Commit

Permalink
feat: Docker を利用したビルドが行えるように
Browse files Browse the repository at this point in the history
  • Loading branch information
Shigezo32 committed Nov 23, 2018
1 parent 3fd3ee6 commit 65bd4a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .dockerignore
Expand Up @@ -6,4 +6,5 @@
.vscode
*/bin
*/obj
**/.toolstarget
**/.toolstarget
*/*/node_modules
4 changes: 4 additions & 0 deletions AngularWithAspNetCore/Dockerfile
Expand Up @@ -11,6 +11,10 @@ COPY . .
WORKDIR "/src/AngularWithAspNetCore"
RUN dotnet build "AngularWithAspNetCore.csproj" -c Release -o /app

RUN apt-get -qq update && apt-get install build-essential -y && apt-get install -my wget gnupg && apt-get -qq -y install bzip2
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs

FROM build AS publish
RUN dotnet publish "AngularWithAspNetCore.csproj" -c Release -o /app

Expand Down

0 comments on commit 65bd4a9

Please sign in to comment.