Skip to content

Commit

Permalink
Merge pull request #36 from hacklabkyiv/fix_docker
Browse files Browse the repository at this point in the history
Fix docker
  • Loading branch information
VovaStelmashchuk authored Dec 7, 2023
2 parents 6531848 + 4120558 commit 1e8e139
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 9 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build Image Cross Platform

on:
workflow_dispatch:
push:
branches:
- 'master'
tags:
- '*'
pull_request:
branches:
- 'master'

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: hacklabkyiv/prismo-app

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER_NAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Build and push
uses: docker/[email protected]
with:
context: ./
file: ./Dockerfile
platforms: linux/arm64/v8
push: true
tags: ${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ COPY requirements.txt /app
RUN --mount=type=cache,target=/root/.cache/pip \
pip3 install -r requirements.txt

COPY . /app
COPY ./app /app

CMD ["gunicorn", "--bind", "0.0.0.0:5000", "application:app"]
2 changes: 1 addition & 1 deletion app/config_debug.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"NOTIFIER": {
"CURRENT_NOTIFIER": "SLACK",
"SLACK_CHANNEL": "#prismo-debugxx",
"SLACK_TOKEN": "xoxb-10631168368-6285659487555-mlu3mtOsfnSI74TNS4JOjBvg"
"SLACK_TOKEN": "xoxb-156594252659-6059712941424-f2Ot4xppyE5wvLs1RtgGPj0N"
}
}
}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ pylint
pycodestyle
gunicorn==20.0.4
argon2-cffi
pyee
pyee~=11.1.0
slack-bolt
6 changes: 0 additions & 6 deletions wsgi.py

This file was deleted.

0 comments on commit 1e8e139

Please sign in to comment.