forked from RedHatInsights/mocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (17 loc) · 656 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (17 loc) · 656 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
FROM registry.access.redhat.com/ubi8/python-36
USER 0
ENV OC_VERSION "v3.11.0"
ENV OC_RELEASE "openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit"
# install the oc client tools
ADD https://github.com/openshift/origin/releases/download/$OC_VERSION/$OC_RELEASE.tar.gz /opt/oc/release.tar.gz
RUN tar --strip-components=1 -xzvf /opt/oc/release.tar.gz -C /opt/oc/ && \
mv /opt/oc/oc /usr/bin/ && \
rm -rf /opt/oc
ADD . /mocks
WORKDIR /mocks
RUN pip3 install --no-cache --upgrade pip setuptools
RUN pip3 install --no-cache .
EXPOSE 8080
RUN mkdir -p /opt/tinydb/data/ && chmod -R a+rwx /opt/tinydb/data/
USER 1001
CMD ["start_crcmocks"]