Poetry sucks

pull/4/head
Yax 1 year ago
parent 564a24623e
commit 590e97e27a

@ -3,12 +3,15 @@ FROM nginx:1.19.0-alpine
RUN apk update RUN apk update
RUN apk add --no-cache build-base bash git python3 make tzdata curl py3-pip libressl-dev musl-dev libffi-dev python3-dev cargo RUN apk add --no-cache build-base bash git python3 make tzdata curl py3-pip libressl-dev musl-dev libffi-dev python3-dev cargo
RUN curl -sSL https://install.python-poetry.org | python - --version 1.4.0
RUN poetry config virtualenvs.create false
# install poetry # install poetry
ENV POETRY_HOME=/opt/poetry #ENV POETRY_HOME=/opt/poetry
RUN python3 -m venv $POETRY_HOME #RUN python3 -m venv $POETRY_HOME
RUN $POETRY_HOME/bin/pip install --upgrade pip #RUN $POETRY_HOME/bin/pip install --upgrade pip
RUN $POETRY_HOME/bin/pip install setuptools_rust poetry==1.4.0 #RUN $POETRY_HOME/bin/pip install setuptools_rust poetry==1.4.0
RUN $POETRY_HOME/bin/poetry --version #RUN $POETRY_HOME/bin/poetry --version
COPY docker/nginx.conf /etc/nginx/nginx.conf COPY docker/nginx.conf /etc/nginx/nginx.conf

@ -1,14 +1,16 @@
#!/bin/bash #!/bin/bash
export POETRY_HOME=/opt/poetry #export POETRY_HOME=/opt/poetry
# clone and build blog # clone and build blog
cd / cd /
rm -rf /blog rm -rf /blog
git clone https://github.com/kianby/blog.git git clone https://github.com/kianby/blog.git
cd /blog cd /blog
$POETRY_HOME/bin/poetry install #$POETRY_HOME/bin/poetry install
$POETRY_HOME/bin/poetry run make #$POETRY_HOME/bin/poetry run make
poetry install
poetry run make
# nginx serve # nginx serve
#nginx -g 'daemon off;' #nginx -g 'daemon off;'

Loading…
Cancel
Save