1
0
mirror of synced 2026-01-01 00:02:54 -05:00
Files
airbyte/tools/code-generator/Dockerfile
Brian Leonard c302af45ff Upgrade to Python 3.9 (#11763)
* Dockerfile to 3.9

* Python version

* More python updates

* 3.9 on GitHub actions and lint updates

* Test out 3.9.11 on GitHub actions

* install python with an action

* formatting: newline

* Also has python code

* only check first level for changed modules
Previous example (source-google-search-console/credentials)

* Test failure: there is no logger.trace
2022-04-11 20:51:37 -07:00

22 lines
660 B
Docker

FROM python:3.9.11-alpine3.15 as base
FROM base as builder
RUN apk --no-cache upgrade \
&& pip install --upgrade pip \
&& apk add g++ make
# the new version (>= 2.1.0) of package markupsafe removed the funcion `soft_unicode`. And it broke other dependences
# https://github.com/pallets/markupsafe/blob/main/CHANGES.rst
# thus this version is pinned
# RUN pip install --prefix=/install markupsafe==2.0.1
RUN pip install --prefix=/install black==22.1.0 datamodel_code_generator==0.11.19
FROM base
COPY --from=builder /install /usr/local
ENTRYPOINT ["datamodel-codegen"]
LABEL io.airbyte.version=dev
LABEL io.airbyte.name=airbyte/code-generator