Latest Python 3.10 and latest Alpine + 4Sigma tools + poetry

This commit is contained in:
Paolo Donadeo 2022-09-08 15:05:40 +02:00
parent 90ba1eeedd
commit 7d65556c9e
2 changed files with 4 additions and 14 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.code-workspace

View File

@ -1,4 +1,4 @@
FROM python:3.10.5-alpine AS build-image
FROM python:3.10-alpine AS build-image
RUN apk update \
&& apk add --no-cache \
@ -6,17 +6,6 @@ RUN apk update \
make autoconf libtool postgresql-dev build-base g++ gcc \
unixodbc-dev freetds-dev libffi libffi-dev czmq-dev libxml2-dev \
libxslt-dev automake cmake git openssl-dev ffmpeg libwebp-dev \
cargo
poetry
RUN /usr/local/bin/pip install poetry
FROM python:3.10.5-alpine AS deploy-image
RUN apk add --no-cache \
bash postgresql-client libpq jpeg-dev zlib-dev musl-dev \
make autoconf libtool postgresql-dev build-base g++ gcc \
unixodbc-dev freetds-dev libffi libffi-dev czmq-dev libxml2-dev \
libxslt-dev automake cmake git openssl-dev ffmpeg libwebp-dev \
cargo
COPY --from=build-image /usr/local/bin/poetry /usr/local/bin/poetry
COPY --from=build-image /usr/local/lib/python3.10 /usr/local/lib/python3.10
CMD ["/bin/bash"]