File tree Expand file tree Collapse file tree 2 files changed +15
-29
lines changed Expand file tree Collapse file tree 2 files changed +15
-29
lines changed Original file line number Diff line number Diff line change 1+ ** /.git
2+ TechnicalDocument
3+ tmp
4+ node_modules
5+ rcjj-scoring
6+ docker
7+ doc
8+ public /signage_content
9+ public /components
10+ public /sw.js
11+ public /workbox **
12+ logs
Original file line number Diff line number Diff line change 1- FROM centos:7
1+ FROM ryorobo/rcj-scoring-base:latest
22MAINTAINER ryorobo <
[email protected] >
33
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-
4+ COPY . /opt/rcj-scoring-system/
165WORKDIR /opt/rcj-scoring-system
176
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
7+ RUN npm run build
338
349ENTRYPOINT ["/start.sh" ]
35-
3610EXPOSE 80
You can’t perform that action at this time.
0 commit comments