Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions docker/seed/Dockerfile.python
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
FROM python:3.8.19-slim-bookworm
FROM docker:28.4.0-dind-alpine3.22

# renovate: datasource=pypi depName=poetry versioning=semver
ENV POETRY_VERSION 1.8.5

RUN set -ex; pip install --no-cache-dir poetry==$POETRY_VERSION;
# Install Python and Poetry
RUN apk add --no-cache python3 py3-pip \
&& ln -sf python3 /usr/bin/python

# renovate: datasource=pypi depName=poetry versioning=semver
ENV POETRY_VERSION=1.8.5
RUN pip install --no-cache-dir --break-system-packages poetry==${POETRY_VERSION}

RUN apt update && apt upgrade -y
RUN apt install nodejs npm -y
RUN npm install -g fern-api
# Create entrypoint script to start dockerd and execute commands
RUN echo '#!/bin/sh' > /entrypoint.sh && \
echo 'dockerd &' >> /entrypoint.sh && \
echo 'sleep 3' >> /entrypoint.sh && \
echo 'exec "$@"' >> /entrypoint.sh && \
chmod +x /entrypoint.sh

CMD [ "poetry" ]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["tail", "-f", "/dev/null"]
1 change: 1 addition & 0 deletions generators/python-v2/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@fern-api/fs-utils": "workspace:*",
"@fern-api/logger": "workspace:*",
"@fern-api/mock-utils": "workspace:*",
"@fern-api/python-ast": "workspace:*",
"@fern-api/python-base": "workspace:*",
"@fern-fern/generator-cli-sdk": "^0.1.5",
"@fern-fern/generator-exec-sdk": "^0.0.1167",
Expand Down
Loading
Loading