File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
2+ WORKDIR /app
3+
4+ COPY ../../../publish ./
5+
6+ RUN dotnet build -c Release --no-restore
7+ RUN dotnet test --no-restore --verbosity normal
8+ RUN dotnet publish -c Release -r linux-x64 --output ../publish Botticelli.Server.csproj
9+
10+ FROM mcr.microsoft.com/dotnet/runtime:7.0 AS final
11+ WORKDIR /app
12+
13+ COPY --from=build /app/publish .
14+
15+ ENTRYPOINT ["dotnet" , "Botticelli.Server.dll" ]
Original file line number Diff line number Diff line change 1+ git clone https://github.com/devgopher/botticelli.git
2+ pushd botticelli/
3+ git checkout mvp/0.1
4+ git pull
5+
6+ pushd Botticelli
7+
8+ dotnet publish -c Release -r linux-x64 --output ../publish Botticelli.Server.csproj
9+ popd
10+ popd
11+
12+ pushd botticelli/deploy/linux/server
13+ docker build -f Dockerfile .
14+ docker push hub.docker.com botticelli_server:0.1
You can’t perform that action at this time.
0 commit comments