Skip to content

Commit

Permalink
Merge branch 'insanum:master' into add-docker-publish-action
Browse files Browse the repository at this point in the history
  • Loading branch information
pataquets authored Mar 25, 2023
2 parents 62bd365 + 4e6eefd commit 25a3562
Show file tree
Hide file tree
Showing 6 changed files with 227 additions and 175 deletions.
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
# docker build . [--build-arg editor_packages=neovim] -t sncli
# docker run --rm -it -v /tmp:/tmp -v "$HOME/.sncli/:/root/.sncli/" -v "$HOME/.snclirc:/root/.snclirc" sncli
FROM python:3.9-bullseye
ARG python_version="3.9"
FROM python:${python_version}-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
Loading

0 comments on commit 25a3562

Please sign in to comment.