Skip to content

Commit

Permalink
fix: bookworm locale issue
Browse files Browse the repository at this point in the history
  • Loading branch information
incebellipipo committed Oct 8, 2023
1 parent 573b975 commit 867522f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/bookworm-push.yml
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
6 changes: 4 additions & 2 deletions bookworm.dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit 867522f

Please sign in to comment.