Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-sharma committed Nov 11, 2018
1 parent 794108e commit 702b26c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ EXPOSE 80

FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
ENV IS_DOCKER true
COPY . .
RUN dotnet restore src/BaGet
RUN dotnet build src/BaGet -c Release -o /app
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
</ItemGroup>

<ItemGroup Condition="$(IsPackable) == 'true'">
<ItemGroup Condition="$(IsPackable) == 'true' AND $(IS_DOCKER) == ''">
<PackageReference Include="Nerdbank.GitVersioning" Version="2.2.13" PrivateAssets="all" />
</ItemGroup>

Expand Down

0 comments on commit 702b26c

Please sign in to comment.