-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 697 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (19 loc) · 697 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
FROM debian:bullseye-slim
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get -y dist-upgrade \
&& apt-get -y --no-install-recommends install python3 python3-pip curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/*
RUN python3 -m pip install -U pip \
&& curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local/poetry python3 - \
&& ln -s /usr/local/poetry/bin/poetry /usr/bin/poetry \
&& ls -l /usr/bin/poetry /usr/local/poetry/bin/poetry
WORKDIR /scripts
ENTRYPOINT ["poetry", "run", "ftg"]
# minimize layers updates
COPY poetry.* *.toml ./
RUN poetry install --no-root \
&& rm -rf /root/.{local,cache}
# should be last:
COPY . .