Latest Python 3.10 and latest Alpine + 4Sigma tools + poetry
This commit is contained in:
parent
90ba1eeedd
commit
7d65556c9e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.code-workspace
|
||||
17
Dockerfile
17
Dockerfile
@ -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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user