-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 941 Bytes
/
Dockerfile
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
28
29
30
31
32
33
# This file passes all checks from Hadolint (https://github.com/hadolint/hadolint)
# Use the command `hadolint Dockerfile` to test
# Adding Hadolint to `pre-commit` is non-trivial, so the command must be run manually
FROM python:3.11.10-slim-bookworm AS achilles
WORKDIR /bot
RUN apt-get -y update \
&& apt-get -y upgrade \
&& apt-get --no-install-recommends -y install git=1:2.39.* \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --upgrade pip==24.2
COPY requirements-lock.txt .
RUN pip install --no-cache-dir -r requirements-lock.txt
RUN mkdir src/
COPY LICENSE .
COPY README.md .
COPY pyproject.toml .
COPY requirements.txt .
RUN pip install --no-cache-dir -e .
# Copy package code into the Docker image
COPY src/ src/
# Script executors
ENTRYPOINT ["python", "-m", "chiron_utils.scripts.run_bot"]
LABEL org.opencontainers.image.source=https://github.com/ALLAN-DIP/chiron-utils