Skip to content

Commit

Permalink
feat: add slim bookworm to container
Browse files Browse the repository at this point in the history
  • Loading branch information
Dysta committed Nov 28, 2023
1 parent b62e4ec commit 5e6d0fa
Show file tree
Hide file tree
Showing 4 changed files with 577 additions and 614 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-buster
FROM python:3.10-bookworm

WORKDIR /app

Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Docker Image CI

on: workflow_dispatch

jobs:
build:

runs-on: ubuntu-latest
env:
repo_name: 'dysta/jukebot'

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: '${{ env.repo_name }}:latest'

- name: Update repo description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ env.repo_name }}
short-description: Discord music bot written in Python 3
readme-filepath: ./README.md
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-buster
FROM python:3.10-slim-bookworm

WORKDIR /app

Expand Down
Loading

0 comments on commit 5e6d0fa

Please sign in to comment.