Skip to content

Commit

Permalink
Merge pull request #109 from magfest/docker_support
Browse files Browse the repository at this point in the history
Adding github action and fixing dockerfile
  • Loading branch information
bitbyt3r committed Nov 4, 2022
2 parents f1b475f + 3bdb5fb commit b241ff4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci-docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Build Docker Image

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1

- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: "."
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ RUN apt-get update && apt-get install -y libcap-dev && rm -rf /var/lib/apt/lists
ADD . /app/
RUN pip3 install virtualenv \
&& virtualenv --always-copy /app/env \
&& /app/env/bin/pip3 install paver
&& /app/env/bin/pip3 install paver "setuptools<58"
RUN /app/env/bin/paver install_deps

CMD /app/env/bin/python3 /app/sideboard/run_server.py
Expand Down

0 comments on commit b241ff4

Please sign in to comment.