Skip to content

Commit 1e8e139

Browse files
Merge pull request #36 from hacklabkyiv/fix_docker
Fix docker
2 parents 6531848 + 4120558 commit 1e8e139

File tree

5 files changed

+50
-9
lines changed

5 files changed

+50
-9
lines changed

.github/workflows/build_image.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build Image Cross Platform
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'master'
8+
tags:
9+
- '*'
10+
pull_request:
11+
branches:
12+
- 'master'
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-22.04
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v1
22+
23+
- name: Docker meta
24+
id: meta
25+
uses: docker/metadata-action@v5
26+
with:
27+
images: hacklabkyiv/prismo-app
28+
29+
- name: Login to GitHub Container Registry
30+
uses: docker/login-action@v1
31+
with:
32+
username: ${{ secrets.DOCKERHUB_USER_NAME }}
33+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
34+
- name: Set up Docker Buildx
35+
id: buildx
36+
uses: docker/setup-buildx-action@v1
37+
- name: Available platforms
38+
run: echo ${{ steps.buildx.outputs.platforms }}
39+
40+
- name: Build and push
41+
uses: docker/build-push-action@v2.7.0
42+
with:
43+
context: ./
44+
file: ./Dockerfile
45+
platforms: linux/arm64/v8
46+
push: true
47+
tags: ${{ steps.meta.outputs.tags }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ COPY requirements.txt /app
66
RUN --mount=type=cache,target=/root/.cache/pip \
77
pip3 install -r requirements.txt
88

9-
COPY . /app
9+
COPY ./app /app
1010

1111
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "application:app"]

app/config_debug.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"NOTIFIER": {
1919
"CURRENT_NOTIFIER": "SLACK",
2020
"SLACK_CHANNEL": "#prismo-debugxx",
21-
"SLACK_TOKEN": "xoxb-10631168368-6285659487555-mlu3mtOsfnSI74TNS4JOjBvg"
21+
"SLACK_TOKEN": "xoxb-156594252659-6059712941424-f2Ot4xppyE5wvLs1RtgGPj0N"
2222
}
2323
}
2424
}

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ pylint
1010
pycodestyle
1111
gunicorn==20.0.4
1212
argon2-cffi
13-
pyee
13+
pyee~=11.1.0
1414
slack-bolt

wsgi.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)