Closed Mih4n closed 2 months ago
Summary Create docker image for server instance
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env WORKDIR /App COPY . ./ RUN dotnet restore FROM mcr.microsoft.com/dotnet/aspnet:8.0 WORKDIR /App COPY --from=build-env /App/out . ENTRYPOINT ["dotnet", "App.dll"]
just replace app with your dll name and setting copy path
actions setting
name: Build docker image on: release: types: [published] push: branches: [ "main", "development" ] jobs: push_to_registries: name: Push Docker image to ghcr runs-on: ubuntu-latest permissions: packages: write contents: read steps: - name: Check out the repo uses: actions/checkout@v4 - name: Log in to the Container registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GHCR_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: ghcr.io/${{ github.repository }} - name: Build and push Docker images uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: context: . file: ./<path to file>/Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}
for what wanderx13
https://github.com/SineVector241/VoiceCraft-MCBE_Proximity_Chat_Docker/pkgs/container/voicecraft https://hub.docker.com/r/sinevector241/voicecraft/tags
thanks
Summary Create docker image for server instance
just replace app with your dll name and setting copy path
actions setting