lain-iwakura commited on
Commit
c073435
1 Parent(s): e70d3d9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -9
Dockerfile CHANGED
@@ -1,16 +1,11 @@
1
- # Use an image that has bash and curl installed already
2
- FROM alpine
3
 
4
  EXPOSE 8888
5
  EXPOSE 80
6
  EXPOSE 4443
7
  EXPOSE 443
8
 
9
- # Install necessary packages
10
- RUN apk add --update bash curl
11
 
12
- # Install Rancher
13
- RUN docker run -d --restart=unless-stopped -p 8888:80 -p 4443:443 rancher/rancher:latest
14
-
15
- # Run a simple keep-alive script
16
- CMD while true; do echo 'Rancher server is running...'; sleep 128; done
 
1
+ FROM docker:latest
 
2
 
3
  EXPOSE 8888
4
  EXPOSE 80
5
  EXPOSE 4443
6
  EXPOSE 443
7
 
8
+ COPY ./swarm-init.sh /swarm-init.sh
9
+ COPY ./keep-alive.sh /keep-alive.sh
10
 
11
+ CMD ["/bin/sh", "/swarm-init.sh"]