From 643f49af9ac224926b3925ae90db211a2c16f479 Mon Sep 17 00:00:00 2001 From: Naramsim Date: Tue, 7 Jan 2025 14:56:47 +0100 Subject: [PATCH] refactor: downgrade py --- README.md | 2 +- Resources/docker/app/Dockerfile | 6 +++--- Resources/docker/app/README.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 24d39336f..dda735bd8 100755 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ A RESTful API for Pokémon - [pokeapi.co](https://pokeapi.co) - [Join Us On Slack!](#join-us-on-slack) - [Contributing](#contributing) -## Setup   [![pyVersion310](https://img.shields.io/badge/python-3.13-blue.svg)](https://www.python.org/download/releases/3.10/) +## Setup   [![pyVersion310](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/download/releases/3.10/) - Download this source code into a working directory, be sure to use the flag `--recurse-submodules` to clone also our submodules. diff --git a/Resources/docker/app/Dockerfile b/Resources/docker/app/Dockerfile index 8516ec4b1..7f56f69a7 100644 --- a/Resources/docker/app/Dockerfile +++ b/Resources/docker/app/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.13.1-alpine3.21 AS builder +FROM python:3.12.8-alpine3.21 AS builder ENV PYTHONUNBUFFERED=1 @@ -11,7 +11,7 @@ RUN apk add --no-cache --virtual .build-deps gcc g++ musl-dev \ postgresql-dev binutils rust cargo && \ python3 -m pip install -r requirements.txt --no-cache-dir -FROM python:3.13.1-alpine3.21 +FROM python:3.12.8-alpine3.21 ENV PYTHONUNBUFFERED=1 ENV DJANGO_SETTINGS_MODULE='config.docker-compose' @@ -19,7 +19,7 @@ ENV DJANGO_SETTINGS_MODULE='config.docker-compose' RUN mkdir /code WORKDIR /code -COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages +COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages COPY --from=builder /usr/local/bin /usr/local/bin ADD . /code/ diff --git a/Resources/docker/app/README.md b/Resources/docker/app/README.md index 10a6a4569..1a01360a4 100644 --- a/Resources/docker/app/README.md +++ b/Resources/docker/app/README.md @@ -17,7 +17,7 @@ - [`master`](https://github.com/PokeAPI/pokeapi/blob/master/Resources/docker/app/Dockerfile) - [`staging`](https://github.com/PokeAPI/pokeapi/blob/staging/Resources/docker/app/Dockerfile) -> `pokeapi` uses `python:3.13.1-alpine3.21` as base image. +> `pokeapi` uses `python:3.12.8-alpine3.21` as base image. ## What is PokeAPI?