Added an auto-building docker image to the repository
Some checks failed
Linter / Lint (3.11) (push) Failing after 41s
Some checks failed
Linter / Lint (3.11) (push) Failing after 41s
This commit is contained in:
parent
e24737739f
commit
e324dac64c
2 changed files with 37 additions and 0 deletions
23
.forgejo/workflows/docker-build.yml
Normal file
23
.forgejo/workflows/docker-build.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
|
||||||
|
name: Docker Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build:
|
||||||
|
runs-on: docker
|
||||||
|
container: catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: actions/docker-build-push@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
push: true
|
||||||
|
registry: https://coastalcommits.com
|
||||||
|
repository: seaswimmerthefsh/discordeventlog
|
||||||
|
tags: latest
|
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM python:3.11.0-alpine
|
||||||
|
|
||||||
|
COPY src /src
|
||||||
|
COPY config.json.example /config.json
|
||||||
|
COPY pyproject.toml /pyproject.toml
|
||||||
|
COPY poetry.lock /poetry.lock
|
||||||
|
|
||||||
|
RUN apk --no-cache add curl && curl -sSL https://seafsh.cc/go/poetry | python - && \
|
||||||
|
cd /src && \
|
||||||
|
/root/.local/bin/poetry install
|
||||||
|
|
||||||
|
CMD ["python", "/src/main.py"]
|
||||||
|
|
||||||
|
EXPOSE 8080
|
Loading…
Reference in a new issue