forked from opendatadiscovery/odd-great-expectations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 781 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.9.1
ARG PYPI_USERNAME
ENV PYPI_USERNAME=$PYPI_USERNAME
ARG PYPI_PASSWORD
ENV PYPI_PASSWORD=$PYPI_PASSWORD
# installing poetry
ENV POETRY_HOME=/etc/poetry \
POETRY_VERSION=1.3.1
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
RUN apt-get update && \
apt-get install -y -q build-essential curl
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=${POETRY_HOME} python3 -
# copying package files
COPY . ./
# publishing package
RUN poetry build
# for test PyPI index (local development)
#RUN poetry config repositories.testpypi https://test.pypi.org/legacy/
#RUN poetry publish --repository testpypi --username $PYPI_USERNAME --password $PYPI_PASSWORD
# for real PyPI index
RUN poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD