diff --git a/Dockerfile b/Dockerfile
index a2b681c3..bd4c78fe 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 96c655d7..98b5cb64 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -20,7 +20,7 @@
-
+