Skip to content

Commit

Permalink
Update dependencies:
Browse files Browse the repository at this point in the history
* python from 3.11.1 to 3.11.2
* pip from 23.0 to 23.0.1
* mypy from 1.0.0 to 1.0.1
  • Loading branch information
mnako committed Feb 18, 2023
1 parent 701fea8 commit 8edab96
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 40 deletions.
6 changes: 3 additions & 3 deletions {{ cookiecutter.project_name }}/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.1-slim-buster
FROM python:3.11.2-slim-buster

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

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

COPY main.py pdm.lock pyproject.toml /app/
RUN pdm install
Expand Down
6 changes: 3 additions & 3 deletions {{ cookiecutter.project_name }}/Dockerfile.production
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM python:3.11.1-alpine3.16
FROM python:3.11.2-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==23.0 && pip install --user pdm==2.4.5
ENV PATH="/app/__pypackages__/3.10/bin:/home/user/.local/bin:${PATH}"
RUN python -m pip install --upgrade pip==23.0.1 && pip install --user pdm==2.4.5
ENV PATH="/app/__pypackages__/3.11/bin:/home/user/.local/bin:${PATH}"

COPY main.py pdm.lock pyproject.toml /app/
RUN pdm install && rm -f /app/pdm.lock
Expand Down
66 changes: 33 additions & 33 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 @@ -18,7 +18,7 @@ homepage = ""
dev = [
"black==23.1.0",
"isort==5.12.0",
"mypy==1.0.0",
"mypy==1.0.1",
"pytest-cov==4.0.0",
"pytest==7.2.1",
"ssort==0.11.6",
Expand Down

0 comments on commit 8edab96

Please sign in to comment.