Do not use slim image anymore
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
459dbd5243
commit
8fd4e8f243
@ -4,7 +4,7 @@ type: docker
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: python:3.8-slim
|
image: python:3.8
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry
|
- pip install poetry
|
||||||
- poetry install
|
- poetry install
|
||||||
@ -23,7 +23,7 @@ steps:
|
|||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: python:3.8-slim
|
image: python:3.8
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry
|
- pip install poetry
|
||||||
- poetry publish --build
|
- poetry publish --build
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM python:3.11.0-slim as build
|
FROM python:3.11.0 as build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pip install poetry && poetry build
|
RUN pip install poetry && poetry build
|
||||||
|
|
||||||
FROM python:3.11.0-slim
|
FROM python:3.11.0
|
||||||
|
|
||||||
COPY --from=build /app/dist /tmp/dist
|
COPY --from=build /app/dist /tmp/dist
|
||||||
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
|
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
|
||||||
|
Loading…
Reference in New Issue
Block a user