Skip to content

Commit

Permalink
Update proposals python and toml
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Jan 22, 2025
1 parent d7bcc02 commit b074305
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 352 deletions.
10 changes: 5 additions & 5 deletions proposals/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# build python swagger client sdk
FROM openjdk:slim as sdk
FROM openjdk:slim AS sdk
WORKDIR /root
RUN apt-get update \
&& apt-get -y upgrade \
Expand All @@ -10,14 +10,14 @@ RUN java -jar swagger-codegen-cli.jar generate -i swagger.json -l python -o swag


# create wheel from python swagger client sdk
FROM python:3.8-alpine as wheel
FROM python:3.13-alpine AS wheel
WORKDIR /root
COPY --from=sdk /root/swagger_client ./
RUN python setup.py bdist_wheel -d /tmp
RUN pip install setuptools && python setup.py bdist_wheel -d /tmp


# dev image
FROM python:3.8-slim as dev
FROM python:3.13-slim AS dev
ENV PYTHONDONTWRITEBYTECODE 1
WORKDIR /usr/src/proposals
COPY --from=wheel /tmp/swagger_client-1.0.0-py3-none-any.whl ./
Expand All @@ -31,7 +31,7 @@ RUN poetry install --no-interaction --no-ansi \


# prod image
FROM python:3.8-slim AS prod
FROM python:3.13-slim AS prod
WORKDIR /usr/src/proposals
# copy and install dependencies
COPY --from=wheel /tmp/swagger_client-1.0.0-py3-none-any.whl ./
Expand Down
Loading

0 comments on commit b074305

Please sign in to comment.