This repository was archived by the owner on Nov 28, 2023. It is now read-only.
File tree 2 files changed +6
-8
lines changed
{{cookiecutter.project_slug}}/backend
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
3
3
WORKDIR /app/
4
4
5
5
# Install Poetry
6
- RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
7
- cd /usr/local/bin && \
8
- ln -s /opt/poetry/bin/poetry && \
9
- poetry config virtualenvs.create false
6
+ RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python3
7
+ ENV PATH="/opt/poetry/bin:$PATH"
8
+ RUN poetry config virtualenvs.create false
10
9
11
10
# Copy poetry.lock* in case it doesn't exist in the repo
12
11
COPY ./app/pyproject.toml ./app/poetry.lock* /app/
Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ FROM python:3.7
3
3
WORKDIR /app/
4
4
5
5
# Install Poetry
6
- RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
7
- cd /usr/local/bin && \
8
- ln -s /opt/poetry/bin/poetry && \
9
- poetry config virtualenvs.create false
6
+ RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python3
7
+ ENV PATH="/opt/poetry/bin:$PATH"
8
+ RUN poetry config virtualenvs.create false
10
9
11
10
# Copy poetry.lock* in case it doesn't exist in the repo
12
11
COPY ./app/pyproject.toml ./app/poetry.lock* /app/
You can’t perform that action at this time.
0 commit comments