-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (28 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
37
38
39
FROM python:3.9-alpine
WORKDIR /app
RUN mkdir /app/data
RUN apk add curl
RUN apk add --virtual mypacks build-base libffi-dev
RUN pip install --upgrade pip
RUN pip install poetry
# install trivy
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
# install kubesec
RUN cd /tmp && \
curl -sfL -o kubesec_linux_amd64.tar.gz https://github.com/controlplaneio/kubesec/releases/download/v2.11.4/kubesec_linux_amd64.tar.gz && \
cd /usr/local/bin && \
tar -xzvf /tmp/kubesec_linux_amd64.tar.gz kubesec && \
rm /tmp/kubesec_linux_amd64.tar.gz
# Install Kubescore
RUN cd /tmp && \
curl -sfL -o kube-score.tar.gz https://github.com/zegl/kube-score/releases/download/v1.13.0/kube-score_1.13.0_linux_amd64.tar.gz && \
cd /usr/local/bin && \
tar -xzvf /tmp/kube-score.tar.gz kube-score && \
rm /tmp/kube-score.tar.gz
COPY poetry.lock pyproject.toml /app/
RUN poetry install
RUN apk del mypacks
COPY vessel vessel
EXPOSE 8089
ENTRYPOINT [ "poetry", "run", "vessel" ]
CMD ["server"]