Skip to content

Commit

Permalink
Removed child .dockerignore
Browse files Browse the repository at this point in the history
Added running tests from docker build
  • Loading branch information
lareeth committed Jan 31, 2019
1 parent dc87fb3 commit 7144d28
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion .Dockerignore

This file was deleted.

6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.git
.vs
Dockerfile

**/[Bb]in/
**/[Oo]bj/
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
# Set work directory for apps
WORKDIR /opt/app/

ADD * ./
ADD . ./

RUN dotnet restore && \
dotnet test

RUN dotnet publish -c Release
RUN dotnet test && \
dotnet publish -c Release

FROM microsoft/dotnet:2.2-runtime-alpine

Expand Down
2 changes: 0 additions & 2 deletions RepoMage/.Dockerignore

This file was deleted.

0 comments on commit 7144d28

Please sign in to comment.