-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (35 loc) · 821 Bytes
/
Dockerfile
File metadata and controls
41 lines (35 loc) · 821 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
37
38
39
40
41
FROM registry.opensource.zalan.do/library/alpine-3.15:latest
LABEL maintainer="Team ACID @ Zalando <[email protected]>"
EXPOSE 8081
RUN \
apk add --no-cache \
alpine-sdk \
autoconf \
automake \
ca-certificates \
libffi-dev \
libtool \
python3 \
python3-dev \
zlib-dev \
&& \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade \
gevent \
jq \
pip \
setuptools \
&& \
rm -rf \
/root/.cache \
/tmp/* \
/var/cache/apk/*
COPY requirements.txt /
COPY start_server.sh /
RUN pip3 install -r /requirements.txt
COPY operator_ui /operator_ui
ARG VERSION=dev
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" /operator_ui/__init__.py
WORKDIR /
CMD ["/usr/local/bin/python3", "-m", "operator_ui"]