-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 828 Bytes
/
Dockerfile
File metadata and controls
22 lines (19 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM isgedge.artifactory.cec.lab.emc.com/isgedge-docker-virtual/python:3.11-slim-bookworm
# Install kubectl.
RUN set -x && \
apt-get update && \
apt-get install -y curl && \
release="$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)" && \
echo "Will download kubectl $release." && \
curl -LO https://storage.googleapis.com/kubernetes-release/release/$release/bin/linux/amd64/kubectl && \
chmod +x kubectl && \
mv kubectl /usr/local/bin && \
apt-get remove -y curl && \
apt-get autoremove -y && \
apt-get clean
# Install python requirements.
COPY ./requirements.txt /opt/requirements.txt
RUN pip install --no-cache-dir -r /opt/requirements.txt
# Add and configure operator.
COPY ./operator /opt/operator
ENTRYPOINT [ "kopf", "run", "/opt/operator/op.py" ]