Skip to content

Commit

Permalink
Update Dockerfile (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Caverly <[email protected]>
  • Loading branch information
coreycaverly authored Oct 4, 2023
1 parent e9f1eb1 commit e8dd5ad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e8dd5ad

Please sign in to comment.