diff --git a/.copier-answers.yml b/.copier-answers.yml index 216fcdd..40556b2 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 2.3.0 +_commit: 2.3.0-6-g6e7f62c _src_path: gh:DiamondLightSource/python-copier-template author_email: tom.cobb@diamond.ac.uk author_name: Tom Cobb diff --git a/Dockerfile b/Dockerfile index 3732c4e..69d003d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # The devcontainer should use the developer target and run as root with podman # or docker with user namespaces. ARG PYTHON_VERSION=3.11 -FROM python:${PYTHON_VERSION} as developer +FROM python:${PYTHON_VERSION} AS developer # Add any system dependencies for the developer/build environment here RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -13,13 +13,13 @@ RUN python -m venv /venv ENV PATH=/venv/bin:$PATH # The build stage installs the context into the venv -FROM developer as build +FROM developer AS build COPY . /context WORKDIR /context RUN touch dev-requirements.txt && pip install -c dev-requirements.txt . # The runtime stage copies the built venv into a slim runtime container -FROM python:${PYTHON_VERSION}-slim as runtime +FROM python:${PYTHON_VERSION}-slim AS runtime # Add apt-get system dependecies for runtime here if needed COPY --from=build /venv/ /venv/ ENV PATH=/venv/bin:$PATH diff --git a/README.md b/README.md index 37495ac..99b52a9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![CI](https://github.com/DiamondLightSource/python-copier-template-example/actions/workflows/ci.yml/badge.svg)](https://github.com/DiamondLightSource/python-copier-template-example/actions/workflows/ci.yml) [![Coverage](https://codecov.io/gh/DiamondLightSource/python-copier-template-example/branch/main/graph/badge.svg)](https://codecov.io/gh/DiamondLightSource/python-copier-template-example) [![PyPI](https://img.shields.io/pypi/v/dls-python-copier-template-example.svg)](https://pypi.org/project/dls-python-copier-template-example) -[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) # python_copier_template_example