Skip to content

Commit

Permalink
Update dependencies:
Browse files Browse the repository at this point in the history
* Python from 3.10.8 to 3.10.9
* PDM from 2.2.1 to 2.3.2
* black from 22.10.0 to 22.12.0
  • Loading branch information
mnako committed Dec 12, 2022
1 parent 6e799df commit 07d7613
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 65 deletions.
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.10.8-slim-buster
FROM python:3.10.9-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==22.3.1 && pip install --user pdm==2.2.1
RUN python -m pip install --upgrade pip==22.3.1 && pip install --user pdm==2.3.2
ENV PATH="/app/__pypackages__/3.10/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.10.8-alpine3.16
FROM python:3.10.9-alpine3.16

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==22.3.1 && pip install --user pdm==2.2.1
RUN python -m pip install --upgrade pip==22.3.1 && pip install --user pdm==2.3.2
ENV PATH="/app/__pypackages__/3.10/bin:/home/user/.local/bin:${PATH}"

COPY main.py pdm.lock pyproject.toml /app/
Expand Down
98 changes: 38 additions & 60 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 @@ -16,7 +16,7 @@ homepage = ""

[project.optional-dependencies]
dev = [
"black==22.10.0",
"black==22.12.0",
"isort==5.10.1",
"mypy==0.991",
"pytest-cov==4.0.0",
Expand Down

0 comments on commit 07d7613

Please sign in to comment.