-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (15 loc) · 640 Bytes
/
Dockerfile
File metadata and controls
27 lines (15 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.9 as requirements-stage
WORKDIR /tmp
RUN curl -sSL https://install.python-poetry.org -o install-poetry.py \
&& python install-poetry.py --yes
ENV PATH="${PATH}:/root/.local/bin"
COPY ./pyproject.toml ./poetry.lock* /tmp/
RUN poetry self add poetry-plugin-export \
&& poetry export -f requirements.txt --output requirements.txt --without-hashes
FROM python:3.9
WORKDIR /app
COPY --from=requirements-stage /tmp/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY ./auto_changelog /app/auto_changelog
ENV PYTHONPATH=/app
CMD ["python", "-m", "auto_changelog"]