mirror of https://github.com/abpframework/abp.git
5 changed files with 83 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||||
|
FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine AS base |
||||
|
WORKDIR /app |
||||
|
EXPOSE 80 |
||||
|
|
||||
|
FROM microsoft/dotnet:2.2-sdk-alpine AS build |
||||
|
WORKDIR /src |
||||
|
COPY . . |
||||
|
WORKDIR "/src/modules/docs/app/VoloDocs.Migrator" |
||||
|
RUN dotnet restore -nowarn:msb3202,nu1503 |
||||
|
RUN dotnet build --no-restore -c Release -o /app |
||||
|
|
||||
|
FROM build AS publish |
||||
|
RUN dotnet publish --no-restore -c Release -o /app |
||||
|
|
||||
|
FROM base AS final |
||||
|
WORKDIR /app |
||||
|
COPY --from=publish /app . |
||||
|
ENTRYPOINT ["dotnet", "VoloDocs.Migrator.dll"] |
||||
@ -0,0 +1,18 @@ |
|||||
|
FROM microsoft/dotnet:2.2-aspnetcore-runtime-alpine AS base |
||||
|
WORKDIR /app |
||||
|
EXPOSE 80 |
||||
|
|
||||
|
FROM microsoft/dotnet:2.2-sdk-alpine AS build |
||||
|
WORKDIR /src |
||||
|
COPY . . |
||||
|
WORKDIR "/src/modules/docs/app/VoloDocs.Web" |
||||
|
RUN dotnet restore -nowarn:msb3202,nu1503 |
||||
|
RUN dotnet build --no-restore -c Release -o /app |
||||
|
|
||||
|
FROM build AS publish |
||||
|
RUN dotnet publish --no-restore -c Release -o /app |
||||
|
|
||||
|
FROM base AS final |
||||
|
WORKDIR /app |
||||
|
COPY --from=publish /app . |
||||
|
ENTRYPOINT ["dotnet", "VoloDocs.Web.dll"] |
||||
@ -0,0 +1,12 @@ |
|||||
|
version: '3.4' |
||||
|
|
||||
|
services: |
||||
|
volo-docs-migrator: |
||||
|
image: 'volosoft/volo-docs-migrator:${TAG:-latest}' |
||||
|
build: |
||||
|
context: ../../ |
||||
|
dockerfile: modules/docs/app/VoloDocs.Migrator/Dockerfile |
||||
|
environment: |
||||
|
- ConnectionString=Server=sqlserver;Database=VoloDocs;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
||||
|
depends_on: |
||||
|
- sqlserver |
||||
@ -0,0 +1,17 @@ |
|||||
|
version: '3.4' |
||||
|
|
||||
|
services: |
||||
|
sqlserver: |
||||
|
environment: |
||||
|
- SA_PASSWORD=yourStrong(!)Password |
||||
|
- ACCEPT_EULA=Y |
||||
|
ports: |
||||
|
- "1433:1433" |
||||
|
|
||||
|
volo-docs: |
||||
|
environment: |
||||
|
- ConnectionString=Server=sqlserver;Database=VoloDocs;Trusted_Connection=True;MultipleActiveResultSets=true;User=sa;Password=yourStrong(!)Password;Integrated Security=false |
||||
|
- Title=VoloDocs |
||||
|
- LogoUrl=/assets/images/Logo.png |
||||
|
ports: |
||||
|
- "80:80" |
||||
@ -0,0 +1,18 @@ |
|||||
|
version: '3.4' |
||||
|
|
||||
|
services: |
||||
|
sqlserver: |
||||
|
image: mcr.microsoft.com/mssql/server |
||||
|
volumes: |
||||
|
- dbdata:/var/opt/mssql |
||||
|
|
||||
|
volo-docs: |
||||
|
image: 'volosoft/volo-docs:${TAG:-latest}' |
||||
|
build: |
||||
|
context: ../../ |
||||
|
dockerfile: modules/docs/app/VoloDocs.Web/Dockerfile |
||||
|
depends_on: |
||||
|
- sqlserver |
||||
|
|
||||
|
volumes: |
||||
|
dbdata: |
||||
Loading…
Reference in new issue