19 lines
466 B
Docker
19 lines
466 B
Docker
FROM python:slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
ENV GIT_SSH_COMMAND "ssh -v"
|
|
WORKDIR /app
|
|
RUN apt-get update && apt-get install -y git build-essential
|
|
RUN pip install poetry
|
|
|
|
# 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
|