Skip to content

Commit

Permalink
chore: update Dockerfile for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
nkemnitz committed Sep 7, 2023
1 parent 46451bb commit ac7fac3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PYTHON_VERSION=3.10
ARG PYTHON_VERSION=3.11
ARG BASE_IMAGE=tiangolo/uwsgi-nginx-flask:python${PYTHON_VERSION}


Expand All @@ -15,17 +15,17 @@ RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
&& conda update conda

# Install PCG dependencies - especially graph-tool
# Note: uwsgi has trouble with pip and python3.10, so adding this with conda, too
COPY requirements.txt .
COPY requirements.in .
COPY requirements.yml .
RUN conda env create -n ${CONDA_ENV} -f requirements.yml

# Shrink conda environment into portable non-conda env
RUN conda install conda-pack -c conda-forge
RUN conda-pack -n ${CONDA_ENV} -o /tmp/env.tar \
RUN conda-pack -n ${CONDA_ENV} --ignore-missing-files -o /tmp/env.tar \
&& mkdir -p /app/venv \
&& cd /app/venv \
&& tar xf /tmp/env.tar \
Expand All @@ -36,10 +36,10 @@ RUN /app/venv/bin/conda-unpack
######################################################
# Build Image - Bigtable Emulator (without Google SDK)
######################################################
FROM golang:buster as bigtable-emulator-build
FROM golang:bullseye as bigtable-emulator-build
RUN mkdir -p /usr/src
WORKDIR /usr/src
ENV GOOGLE_CLOUD_GO_VERSION bigtable/v1.12.0
ENV GOOGLE_CLOUD_GO_VERSION bigtable/v1.19.0
RUN apt-get update && apt-get install git -y
RUN git clone --depth=1 --branch="$GOOGLE_CLOUD_GO_VERSION" https://github.com/googleapis/google-cloud-go.git . \
&& cd bigtable \
Expand Down

0 comments on commit ac7fac3

Please sign in to comment.