From 518f4ad03f5aa9b5162ac15ef415993a8bb23d81 Mon Sep 17 00:00:00 2001 From: Corey Caverly Date: Wed, 4 Oct 2023 14:45:48 -0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d909ce7..b2c4d3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,17 @@ -FROM python:3.7-stretch AS builder +FROM python:3.9-bookworm AS builder USER root RUN mkdir /rep COPY . /rep WORKDIR /rep -RUN apt-get update && apt-get install -y python3 python-pip build-essential python-setuptools +RUN apt-get update && apt-get install -y python3 python3-pip build-essential RUN pip3 wheel . --wheel-dir=/rep/wheels +RUN pip3 install setuptools -FROM python:3.7-stretch +FROM python:3.9-bookworm USER root -RUN apt-get update && apt-get install -y --no-install-recommends python3 python-pip python-setuptools && apt-get clean && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-pip && apt-get clean && rm -rf /var/lib/apt/lists/* +RUN pip3 install setuptools COPY --from=builder /rep /rep COPY docker-entrypoint.sh /docker-entrypoint.sh