Skip to content

Commit

Permalink
Update Python Version for Docker setup, set default value for WORKDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaumann committed Aug 20, 2023
1 parent a8a76b6 commit da0523d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PYTHON
FROM python:${PYTHON}-slim-stretch
FROM python:${PYTHON}-slim-bookworm

ENV PATH="/root/.local/bin:$PATH" \
PYTHONDONTWRITEBYTECODE=1 \
Expand All @@ -17,7 +17,7 @@ COPY poetry.lock .
# Dependencies change more often, so we break RUN to cache the previous layer
RUN poetry install --no-interaction

ARG NAME
ARG NAME=nornir
WORKDIR /${NAME}

COPY . .
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DOCKER_COMPOSE_FILE=docker-compose.yaml
DOCKER_COMPOSE=PYTHON=${PYTHON} docker-compose -f ${DOCKER_COMPOSE_FILE}
NORNIR_DIRS=nornir tests docs

PYTHON:=3.7
PYTHON:=3.10

.PHONY: docker
docker:
Expand Down

0 comments on commit da0523d

Please sign in to comment.