-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 777 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 777 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
FROM python:3.14.1-slim
WORKDIR /publisher
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 \
python3-dev \
default-libmysqlclient-dev \
supervisor \
curl \
git \
vim \
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 make build-setup
ENV MODE=production
CMD ["supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]