From 867522fb59f7c8ca492272f8d04bec8944cc21d6 Mon Sep 17 00:00:00 2001 From: Emir Cem Gezer Date: Sun, 8 Oct 2023 17:41:37 +0200 Subject: [PATCH] fix: bookworm locale issue --- .github/workflows/bookworm-push.yml | 34 +++++++++++++++++++ .../{docker-image-push.yml => jammy-push.yml} | 0 bookworm.dockerfile | 6 ++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/bookworm-push.yml rename .github/workflows/{docker-image-push.yml => jammy-push.yml} (100%) diff --git a/.github/workflows/bookworm-push.yml b/.github/workflows/bookworm-push.yml new file mode 100644 index 0000000..409d219 --- /dev/null +++ b/.github/workflows/bookworm-push.yml @@ -0,0 +1,34 @@ +name: ci + +on: + push: + branches: + - 'master' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + 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@v5 + with: + context: . + file: bookworm.dockerfile + push: true + tags: incebellipipo/devcontainer:bookworm \ No newline at end of file diff --git a/.github/workflows/docker-image-push.yml b/.github/workflows/jammy-push.yml similarity index 100% rename from .github/workflows/docker-image-push.yml rename to .github/workflows/jammy-push.yml diff --git a/bookworm.dockerfile b/bookworm.dockerfile index cef8799..438a12f 100644 --- a/bookworm.dockerfile +++ b/bookworm.dockerfile @@ -1,7 +1,7 @@ FROM debian:bookworm # Install python, system tools, and some python dependencies -RUN apt update && apt upgrade -yq ;\ +RUN apt update ;\ apt install -yq \ python3 \ python3-pip \ @@ -13,7 +13,9 @@ RUN apt update && apt upgrade -yq ;\ apt autoclean # Set the locale -RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ +RUN \ + locale-gen en_US.UTF-8 ;\ + sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ locale-gen ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en