-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 783 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 783 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
FROM python:3.14.1-slim AS base
WORKDIR /gateway_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 \
apache2 \
apache2-dev \
default-libmysqlclient-dev \
supervisor \
git \
vim \
curl \
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 --quiet --no-cache-dir -r requirements.txt
COPY . .
RUN make grpc-compile
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ENV MODE=production
CMD ["supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]