-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (31 loc) · 1.05 KB
/
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
34
35
36
# postq for docker
FROM python:3.9-slim-bullseye
LABEL maintainer="Sean Harrison <[email protected]>"
WORKDIR /app
# install system requirements -- psql, docker
RUN apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
postgresql-client \
apt-transport-https \
ca-certificates \
curl \
gnupg \
gnupg-agent \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/debian/gpg >docker.key \
&& apt-key add docker.key \
&& rm docker.key \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable" \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
docker-ce docker-ce-cli \
containerd.io \
&& rm -rf /var/lib/apt/lists/*
COPY req/ req/
RUN pip install --no-cache-dir -r req/dev.txt
COPY ./ ./
RUN pip install --no-cache-dir -e .
ENTRYPOINT ["./docker-entrypoint.sh", "python", "-m", "postq"]