File tree Expand file tree Collapse file tree 1 file changed +29
-7
lines changed Expand file tree Collapse file tree 1 file changed +29
-7
lines changed Original file line number Diff line number Diff line change 1- FROM ryorobo/rcj-scoring-base:latest
1+ FROM centos:7
22MAINTAINER ryorobo <
[email protected] >
33
4- RUN pwd
5- RUN ls -a
6- RUN mv ~/* ~/.[^\. ]* /opt/rcj-scoring-system/
4+ COPY ./docker/nginx.repo /etc/yum.repos.d/nginx.repo
5+ COPY ./docker/mongodb.repo /etc/yum.repos.d/mongodb.repo
6+ COPY ./docker/nginx.conf /etc/nginx/nginx.conf
7+
8+ RUN set -x && \
9+ yum update -y && \
10+ yum install -y nginx mongodb-org && \
11+ yum install gcc-c++ make cmake git python wget -y && \
12+ curl -sL https://rpm.nodesource.com/setup_10.x | bash - && \
13+ yum install nodejs -y && \
14+ mkdir -p /opt/rcj-scoring-system
15+
716WORKDIR /opt/rcj-scoring-system
8- RUN ls -a
917
10- RUN npm run build
18+ RUN wget https://raw.githubusercontent.com/rrrobo/rcj-rescue-scoring-japan/master/package.json && \
19+ npm install && \
20+ npm install bower -g && \
21+ npm install workbox-cli -g && \
22+ git clone https://github.com/rrrobo/rcj-rescue-scoring-japan /opt/rcj-scoring-system-tmp && \
23+ mv /opt/rcj-scoring-system-tmp/* /opt/rcj-scoring-system-tmp/.[^\. ]* ./ && \
24+ rm -R /opt/rcj-scoring-system-tmp && \
25+ bower install --allow-root && \
26+ mkdir logs
27+
28+ WORKDIR /
29+ COPY ./docker/start.sh /start.sh
30+ RUN mkdir /data/db -p && \
31+ chmod +x start.sh && \
32+ yum remove -y cmake wget
1133
1234ENTRYPOINT ["/start.sh" ]
1335
14- EXPOSE 80
36+ EXPOSE 80
You can’t perform that action at this time.
0 commit comments