Skip to content

Commit

Permalink
Merge pull request #125 from pataquets/dockerfile-add-locale
Browse files Browse the repository at this point in the history
Dockerfile: add pager packages and locale support via ARG parameters.
  • Loading branch information
Samuel Walladge authored Sep 30, 2022
2 parents f0f4b07 + 9356c2d commit 1213f21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,27 @@
FROM python:3.9-bullseye

ARG editor_packages="vim"
ARG pager_packages="less"

ARG locale="en_US.UTF-8"
ARG charset="UTF-8"

# Install editors and tools of your choice
ARG DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install -y \
${editor_packages} \
${pager_packages} \
locales \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/

RUN \
echo "${locale} ${charset}" | tee /etc/locale.gen \
&& locale-gen

RUN pip3 install --no-cache pipenv

COPY ./Pipfile /sncli/
Expand Down

0 comments on commit 1213f21

Please sign in to comment.