Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker #36

Merged
merged 3 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Image Cross Platform

on:
push:
branches:
- master
- fix_docker

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

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

- 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, linux/arm64, linux/amd64
push: true
tags: |
0.1.9
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"
VovaStelmashchuk marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
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.

Loading