Skip to content

Commit 113fa9e

Browse files
authored
Merge pull request #152 from conductor-sdk/attempt-to-fix-readme
Updated dockerfile - attempt to add readme at pypi
2 parents 1b0f0d2 + d23c825 commit 113fa9e

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
ARG SDK_ORIGIN=local_sdk
22

3-
FROM python:3.11-alpine as piton
3+
FROM python:3.11-alpine as python_base
44
RUN mkdir /package
55
COPY /src /package/src
66
COPY /setup* /package/
7+
COPY /README.md /package/
78
WORKDIR /package
89

9-
FROM piton as lint
10+
FROM python_base as lint
1011
RUN python3 -m pip install pylint
1112
RUN python3 -m pylint --disable=all ./src
1213

13-
FROM piton as local_sdk
14+
FROM python_base as local_sdk
1415
ENV CONDUCTOR_PYTHON_VERSION="v0.0.0"
1516
RUN python3 -m pip install .
1617

17-
FROM piton as remote_sdk
18+
FROM python_base as remote_sdk
1819
ARG CONDUCTOR_PYTHON_VERSION
1920
RUN python3 -m pip install conductor-python==${CONDUCTOR_PYTHON_VERSION}
2021

21-
FROM ${SDK_ORIGIN} as piton_test
22+
FROM ${SDK_ORIGIN} as python_test_base
2223
RUN rm -rf /package/src
2324
COPY /tests /package/tests
2425

25-
FROM piton_test as unit_test
26+
FROM python_test_base as unit_test
2627
RUN python3 -m unittest discover --verbose --start-directory=./tests/unit
2728

28-
FROM piton_test as integration_test
29+
FROM python_test_base as integration_test
2930
ARG KEY
3031
ARG SECRET
3132
ARG CONDUCTOR_SERVER_URL
@@ -34,7 +35,7 @@ ENV SECRET=${SECRET}
3435
ENV CONDUCTOR_SERVER_URL=${CONDUCTOR_SERVER_URL}
3536
RUN python3 /package/tests/integration/main.py
3637

37-
FROM piton as publish
38+
FROM python_base as publish
3839
RUN python3 -m pip install setuptools wheel build twine
3940
ARG CONDUCTOR_PYTHON_VERSION
4041
ENV CONDUCTOR_PYTHON_VERSION=${CONDUCTOR_PYTHON_VERSION}

0 commit comments

Comments
 (0)