Skip to content

Commit 181f0c6

Browse files
committed
- fix
1 parent 50d03fb commit 181f0c6

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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"]

deploy/linux/server/back/build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)