-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 917 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 917 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
28
29
30
31
32
33
FROM python:3.14.1-slim
WORKDIR /bridge_server
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
--mount=type=cache,sharing=locked,target=/var/lib/apt \
apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
vim \
curl \
supervisor \
pkg-config && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN --mount=type=cache,sharing=locked,target=/root/.cache/pip \
pip install --disable-pip-version-check -r requirements.txt
COPY . .
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN --mount=type=cache,sharing=locked,target=/root/.cache/pip \
make setup && \
find bridges/ -type f -name "requirements.txt" -exec \
pip install --disable-pip-version-check -r {} \;
ENV MODE=production
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]