-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.test
More file actions
36 lines (30 loc) · 927 Bytes
/
Dockerfile.test
File metadata and controls
36 lines (30 loc) · 927 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
34
35
36
FROM docker.io/library/python:3.9-alpine
COPY requirements.txt /app/requirements.txt
ENV PATH="/app/.venv/bin:${PATH}"
COPY . /app
WORKDIR /app
RUN apk add --update --virtual .build-deps \
musl-dev \
openssl-dev \
&& python3 -m venv /app/.venv \
&& pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
&& pip3 install --disable-pip-version-check --no-cache-dir -r /app/dev_requirements.txt \
&& runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \
&& apk add --update --virtual .helmbroker-rundeps \
$runDeps \
ca-certificates \
su-exec \
bash \
shadow \
curl \
&& apk del .build-deps \
&& chmod +x /app/bin/* \
&& /app/bin/install
COPY . /app
CMD ["/app/bin/boot"]
EXPOSE 5000