File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
{{cookiecutter.project_slug}}/backend Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
3
3
WORKDIR /app/
4
4
5
5
# Install Poetry
6
- RUN pip install --no-cache-dir poetry && poetry config virtualenvs.create false
6
+ RUN curl -sSL https://github.com/raw/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
7
10
8
11
# Copy poetry.lock* in case it doesn't exist in the repo
9
12
COPY ./app/pyproject.toml ./app/poetry.lock* /app/
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ FROM python:3.7
3
3
WORKDIR /app/
4
4
5
5
# Install Poetry
6
- RUN pip install --no-cache-dir poetry && poetry config virtualenvs.create false
6
+ RUN curl -sSL https://github.com/raw/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
7
10
8
11
# Copy poetry.lock* in case it doesn't exist in the repo
9
12
COPY ./app/pyproject.toml ./app/poetry.lock* /app/
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ FROM python:3.7
3
3
WORKDIR /app/
4
4
5
5
# Install Poetry
6
- RUN pip install --no-cache-dir poetry && poetry config virtualenvs.create false
6
+ RUN curl -sSL https://github.com/raw/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
7
10
8
11
# Copy poetry.lock* in case it doesn't exist in the repo
9
12
COPY ./app/pyproject.toml ./app/poetry.lock* /app/
You can’t perform that action at this time.
0 commit comments