Skip to content

Commit

Permalink
Update images:
Browse files Browse the repository at this point in the history
* Python from 3.11.2 to 3.11.3

Update dependencies:
* pdm from 2.4.9 to 2.5.2
* pytest from 7.2.2 to 7.3.1
  • Loading branch information
mnako committed Apr 15, 2023
1 parent c07d893 commit 84f5be4
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 150 deletions.
224 changes: 101 additions & 123 deletions pdm.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ homepage = ""

[project.optional-dependencies]
dev = [
"pytest==7.2.1",
"pytest==7.3.1",
]
[tool]
[tool.pdm]
Expand Down
4 changes: 2 additions & 2 deletions {{ cookiecutter.project_name }}/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.2-slim-buster
FROM python:3.11.3-slim-buster

ARG USER_ID
ARG GROUP_ID
Expand All @@ -12,7 +12,7 @@ RUN groupadd --force --gid ${GROUP_ID} --system usergroup && \
USER user

WORKDIR /app
RUN python -m pip install --upgrade pip==23.0.1 && pip install --user pdm==2.4.9
RUN python -m pip install --upgrade pip==23.0.1 && pip install --user pdm==2.5.2
ENV PATH="/app/__pypackages__/3.11/bin:/home/user/.local/bin:${PATH}"

COPY main.py pdm.lock pyproject.toml /app/
Expand Down
4 changes: 2 additions & 2 deletions {{ cookiecutter.project_name }}/Dockerfile.production
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.11.2-alpine3.16
FROM python:3.11.3-alpine3.17

LABEL org.opencontainers.image.source="https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.project_name }}"

RUN addgroup -S usergroup && adduser -S user -G usergroup && mkdir /app && chown user /app
USER user

WORKDIR /app
RUN python -m pip install --upgrade pip==23.0.1 && pip install --user pdm==2.4.9
RUN python -m pip install --upgrade pip==23.0.1 && pip install --user pdm==2.5.2
ENV PATH="/app/__pypackages__/3.11/bin:/home/user/.local/bin:${PATH}"

COPY main.py pdm.lock pyproject.toml /app/
Expand Down
32 changes: 11 additions & 21 deletions {{ cookiecutter.project_name }}/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion {{ cookiecutter.project_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dev = [
"isort==5.12.0",
"mypy==1.2.0",
"pytest-cov==4.0.0",
"pytest==7.2.2",
"pytest==7.3.1",
"ssort==0.11.6",
"ruff==0.0.261",
]
Expand Down

0 comments on commit 84f5be4

Please sign in to comment.