SineVector241 / VoiceCraft-MCBE_Proximity_Chat

VoiceCraft software to implement proximity VC for Minecraft Bedrock Edition
GNU General Public License v3.0
103 stars 19 forks source link

Docker image #103

Closed Mih4n closed 2 months ago

Mih4n commented 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 }}
Mih4n commented 2 months ago

for what wanderx13

SineVector241 commented 2 months ago

https://github.com/SineVector241/VoiceCraft-MCBE_Proximity_Chat_Docker/pkgs/container/voicecraft https://hub.docker.com/r/sinevector241/voicecraft/tags

Mih4n commented 2 months ago

thanks