Skip to content

Commit

Permalink
Set up base python image
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Jan 4, 2025
1 parent f2ceaf3 commit 69d49f3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Publish Docker Image

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:latest
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM thehale/python-poetry:1.8.5-py3.13-slim AS base

RUN apt-get update && apt-get -y install libpq5

0 comments on commit 69d49f3

Please sign in to comment.