Skip to content

Commit

Permalink
docker build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0umik committed Jul 16, 2024
1 parent ba0cae6 commit bb6df3f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

Expand Down
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Use a minimal Alpine image for the final stage
FROM alpine:latest

# Set the working directory
WORKDIR /root/

# Copy the binary from the build artifact location (this will be handled by GitHub Actions)
COPY engine /root/engine

# Expose port 5050
EXPOSE 5050

# Command to run the binary
CMD ["./engine"]

0 comments on commit bb6df3f

Please sign in to comment.