Added an auto-building docker image to the repository
Some checks failed
Linter / Lint (3.11) (push) Failing after 41s

This commit is contained in:
Seaswimmer 2023-11-25 04:19:50 -05:00
parent e24737739f
commit e324dac64c
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE
2 changed files with 37 additions and 0 deletions

View 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
View 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