generated from redhat-gpte-labs/bookbag-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (20 loc) · 903 Bytes
/
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
FROM quay.io/openshifthomeroom/workshop-dashboard:5.0.1
RUN source /opt/workshop/etc/profile.d/python.sh && \
pip install --no-cache-dir powerline-shell==0.7.0 && \
fix-permissions /opt/app-root
ENV TERMINAL_TAB=split ODO_VERSION=v1.1.0
RUN git clone https://github.com/openshift-labs/beercan-shooter-game.git sample && \
fix-permissions /opt/app-root/src
RUN git clone https://github.com/openshift-roadshow/nationalparks-js backend && \
git clone https://github.com/openshift-roadshow/parksmap-web frontend && \
(cd frontend && mvn package && mvn clean) && \
fix-permissions /opt/app-root/src
USER root
COPY . /tmp/src
RUN rm -rf /tmp/src/Dockerfile /tmp/src/.gitignore /tmp/src/.dockerignore /tmp/src/apb && \
rm -rf /tmp/src/.git* && \
chown -R 1001 /tmp/src && \
chgrp -R 0 /tmp/src && \
chmod -R g+w /tmp/src
USER 1001
RUN /usr/libexec/s2i/assemble