1
0
mirror of synced 2026-01-02 12:02:47 -05:00
Files
airbyte/tools/code-generator/Dockerfile
2022-02-21 14:01:42 +02:00

22 lines
660 B
Docker

FROM python:3.7.11-alpine3.14 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