-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from fga-eps-mds/hotfix/adicionando_dockerizacao
Dockerizando aplicacao e atualizando readme
- Loading branch information
Showing
5 changed files
with
98 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
EMAIL_SERVICE_ADDRESS=teste | ||
EMAIL_SERVICE_PASSWORD=passaword | ||
EMAIL_DNIT=email |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build | ||
|
||
WORKDIR /app | ||
|
||
COPY EscolaService.sln ./ | ||
COPY app/app.csproj ./app/ | ||
COPY dominio/dominio.csproj ./dominio/ | ||
COPY repositorio/repositorio.csproj ./repositorio/ | ||
COPY service/service.csproj ./service/ | ||
COPY test/test.csproj ./test/ | ||
|
||
RUN dotnet restore | ||
|
||
COPY . ./ | ||
|
||
RUN dotnet build -c Release | ||
|
||
RUN dotnet publish app/app.csproj -c Release -o /app/out | ||
RUN dotnet publish service/service.csproj -c Release -o /app/out | ||
RUN dotnet publish repositorio/repositorio.csproj -c Release -o /app/out | ||
RUN dotnet publish dominio/dominio.csproj -c Release -o /app/out | ||
RUN dotnet publish test/test.csproj -c Release -o /app/out | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=build /app/out . | ||
|
||
ENTRYPOINT ["dotnet", "app.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: "3.0" | ||
services: | ||
escola-service: | ||
build: | ||
context: . | ||
ports: | ||
- "7084:7084" | ||
container_name: escolaService | ||
env_file: | ||
- .env |