Skip to content

Commit

Permalink
Merge pull request #2 from lareeth/feature/docker-tests
Browse files Browse the repository at this point in the history
Added suppoort for tests
  • Loading branch information
lareeth authored Jan 31, 2019
2 parents fbd8e56 + 7144d28 commit c04051f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 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/
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
# Set work directory for apps
WORKDIR /opt/app/

ADD RepoMage ./
ADD . ./

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

FROM microsoft/dotnet:2.2-runtime-alpine

Expand All @@ -19,6 +20,6 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
# Set work directory for apps
WORKDIR /opt/app/

COPY --from=build /opt/app/bin/Release/netcoreapp2.2/publish /opt/app
COPY --from=build /opt/app/RepoMage/bin/Release/netcoreapp2.2/publish /opt/app

ENTRYPOINT exec dotnet /opt/app/RepoMage.dll
2 changes: 0 additions & 2 deletions RepoMage/.Dockerignore

This file was deleted.

0 comments on commit c04051f

Please sign in to comment.