fix-poetryenv
This commit is contained in:
parent
34f9139742
commit
bab6990c87
12
Dockerfile
12
Dockerfile
|
@ -6,5 +6,13 @@ ENV GIT_SSH_COMMAND "ssh -v"
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apt-get update && apt-get install -y git build-essential
|
RUN apt-get update && apt-get install -y git build-essential
|
||||||
RUN pip install poetry
|
RUN pip install poetry
|
||||||
COPY . .
|
|
||||||
RUN poetry install
|
# Copy only requirements to cache them in docker layer
|
||||||
|
COPY pyproject.toml poetry.lock /app/
|
||||||
|
|
||||||
|
# Project initialization:
|
||||||
|
RUN poetry config virtualenvs.create false \
|
||||||
|
&& poetry install --no-interaction --no-ansi
|
||||||
|
|
||||||
|
# Copy project files into the docker image
|
||||||
|
COPY . /app
|
||||||
|
|
Loading…
Reference in New Issue
Block a user