File tree 2 files changed +17
-45
lines changed 2 files changed +17
-45
lines changed Original file line number Diff line number Diff line change 1
- ARG BASE_IMAGE=registry.opensource.zalan.do/library/alpine-3.15:latest
2
- ARG NODE_IMAGE=node:14.21.2-alpine
3
-
4
- FROM $NODE_IMAGE AS build
5
-
6
- COPY . /workdir
7
- WORKDIR /workdir/app
8
-
9
- RUN npm install &&\
10
- npm run build
11
-
12
- FROM $BASE_IMAGE
13
1
2
+ FROM registry.opensource.zalan.do/library/python-3.11-slim:latest
14
3
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
15
4
16
5
EXPOSE 8081
6
+ WORKDIR /app
7
+
8
+ RUN apt-get -qq -y update \
9
+ # https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary
10
+ && apt-get -qq -y install --no-install-recommends g++ libpq-dev python3-dev python3-distutils \
11
+ && apt-get -qq -y clean \
12
+ && rm -rf /var/lib/apt/lists/*
17
13
18
- RUN \
19
- apk add --no-cache \
20
- alpine-sdk \
21
- autoconf \
22
- automake \
23
- ca-certificates \
24
- libffi-dev \
25
- libtool \
26
- python3 \
27
- python3-dev \
28
- zlib-dev \
29
- && \
30
- python3 -m ensurepip && \
31
- rm -r /usr/lib/python*/ensurepip && \
32
- pip3 install --upgrade \
33
- gevent \
34
- jq \
35
- pip \
36
- setuptools \
37
- && \
38
- rm -rf \
39
- /root/.cache \
40
- /tmp/* \
41
- /var/cache/apk/*
14
+ COPY requirements.txt .
15
+ COPY start_server.sh .
16
+ RUN pip install -r requirements.txt
42
17
43
- COPY requirements.txt /
44
- COPY start_server.sh /
45
- RUN pip3 install -r /requirements.txt
18
+ COPY wal-e-master wal_e
19
+ RUN pip install -e wal_e
20
+ COPY operator_ui operator_ui/
46
21
47
- COPY operator_ui /operator_ui
48
- COPY --from=build /workdir/operator_ui/static/build /operator_ui/static/build
49
22
ARG VERSION=dev
50
- RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" / operator_ui/__init__.py
23
+ RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" operator_ui/__init__.py
51
24
52
- WORKDIR /
53
- CMD ["/usr/bin/python3" , "-m" , "operator_ui" ]
25
+ CMD ["python" , "-m" , "operator_ui" ]
Original file line number Diff line number Diff line change 77
77
SUPERUSER_TEAM = getenv ('SUPERUSER_TEAM' , 'acid' )
78
78
TARGET_NAMESPACE = getenv ('TARGET_NAMESPACE' )
79
79
GOOGLE_ANALYTICS = getenv ('GOOGLE_ANALYTICS' , False )
80
- MIN_PODS = getenv ('MIN_PODS' , 2 )
80
+ MIN_PODS = getenv ('MIN_PODS' , 2 )
81
81
RESOURCES_VISIBLE = getenv ('RESOURCES_VISIBLE' , True )
82
82
CUSTOM_MESSAGE_RED = getenv ('CUSTOM_MESSAGE_RED' , '' )
83
83
You can’t perform that action at this time.
0 commit comments