Skip to content

Commit

Permalink
WIP: Bump python version in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Grennith committed Jun 25, 2023
1 parent fc0b376 commit 3cad25c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# MAD
############################
FROM python:3.9-slim AS mad-core
FROM python:3.11-slim AS mad-core
# Working directory for the application
WORKDIR /usr/src/app

Expand All @@ -24,10 +24,9 @@ libgl1-mesa-glx \
# cleanup
&& apt-get remove -y build-essential \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*

&& rm -rf /var/lib/apt/lists/* \
# tesseract
RUN apt-get update && apt-get -y install tesseract-ocr
&& apt-get -y install tesseract-ocr

# Copy everything to the working directory (Python files, templates, config) in one go.
COPY . /usr/src/app/
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM local_mad_production:latest AS dev_test
# Versions of python to install for pyenv. These are used when tox executes specific
# python versions. The correct versions need to be added to tox.ini under tox/envlist
ENV PYTHON_VERSIONS 3.9.0
ENV PYTHON_VERSIONS 3.11.4
# User information related to how to run within the shell
ARG USER_NAME=dockeruser
ARG UID=1000
Expand Down

0 comments on commit 3cad25c

Please sign in to comment.