Skip to content

Commit 1f6b8a5

Browse files
committed
update dockerfile
1 parent 30e6cc0 commit 1f6b8a5

File tree

2 files changed

+15
-29
lines changed

2 files changed

+15
-29
lines changed

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

Dockerfile

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,10 @@
1-
FROM centos:7
1+
FROM ryorobo/rcj-scoring-base:latest
22
MAINTAINER 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/
165
WORKDIR /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

349
ENTRYPOINT ["/start.sh"]
35-
3610
EXPOSE 80

0 commit comments

Comments
 (0)