forked from seanshoffman/csharp-xamarin-applying-mvvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (15 loc) · 773 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
ENV APP_DIR /src/app
RUN mkdir -p ${APP_DIR}
RUN addgroup -S projects && adduser -S projects -G projects
WORKDIR ${APP_DIR}
COPY . .
RUN chown -R projects:projects ${APP_DIR}
USER projects
RUN dotnet build ${APP_DIR}/Roster.Client/Roster.Client.csproj
RUN dotnet build ${APP_DIR}/Roster.Client.Tests.Mod02/Roster.Client.Tests.Mod02.csproj
RUN dotnet build ${APP_DIR}/Roster.Client.Tests.Mod03/Roster.Client.Tests.Mod03.csproj
RUN dotnet build ${APP_DIR}/Roster.Client.Tests.Mod04/Roster.Client.Tests.Mod04.csproj
RUN dotnet build ${APP_DIR}/Roster.Client.Tests.Mod05/Roster.Client.Tests.Mod05.csproj
RUN dotnet build ${APP_DIR}/Roster.Client.Tests.Mod06/Roster.Client.Tests.Mod06.csproj
ENTRYPOINT ["/bin/sh"]