Skip to content

Commit 4548f3a

Browse files
author
Franz Ebner
committed
fix Dockerfile FROM_IMAGE reference
1 parent 5bb6a1a commit 4548f3a

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

  • {{ cookiecutter.__package_name_kebab_case }}

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#TODO: might be cool to have a fixed image, to assure reproducibility
22
ARG FROM_IMAGE=debian:stable-slim
3-
FROM FROM_IMAGE AS build
3+
FROM $FROM_IMAGE AS build
44

55
ARG PYTHON_VERSION={{cookiecutter.python_version}}
66
ARG POETRY_VERSION=1.8.0
@@ -61,15 +61,14 @@ RUN poetry install --all-extras --no-root
6161
# update any paths of installed cli tools (from pip)
6262
RUN pyenv rehash
6363

64-
# Copy the rest of the repository
65-
ADD . .
66-
6764

6865
# TODO: build from FROM_IMAGE (or a plain python img), and just copy from build (without pyenv, poetry)
6966
FROM build AS runtime
7067

68+
# Copy the rest of the repository
69+
ADD . .
7170

72-
FROM base AS dev
71+
FROM build AS dev
7372

7473
RUN eval "$(pyenv init -)" \
7574
# activate pyenv on shell start

0 commit comments

Comments
 (0)