Skip to content

Commit

Permalink
Dockerfile: allow specifying build's Python version via ARG parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
pataquets committed Feb 28, 2023
1 parent eb6869e commit 4da5958
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 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"
Expand Down

0 comments on commit 4da5958

Please sign in to comment.