update Dockerfile for Python 3.10
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM python:3.8-slim
|
FROM python:3.10-slim
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
@@ -12,12 +12,12 @@ COPY pyproject.toml /
|
|||||||
RUN poetry config virtualenvs.create false && \
|
RUN poetry config virtualenvs.create false && \
|
||||||
poetry install --no-interaction --no-dev --no-ansi
|
poetry install --no-interaction --no-dev --no-ansi
|
||||||
|
|
||||||
FROM python:3.8-slim
|
FROM python:3.10-slim
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
# copy pre-built packages to this image
|
# copy pre-built packages to this image
|
||||||
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
|
COPY --from=0 /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
||||||
|
|
||||||
# now copy the actual code we will execute (poetry install above was just for dependencies)
|
# now copy the actual code we will execute (poetry install above was just for dependencies)
|
||||||
COPY kube_ops_view /kube_ops_view
|
COPY kube_ops_view /kube_ops_view
|
||||||
|
|||||||
Reference in New Issue
Block a user