Spaces:
Runtime error
Runtime error
Commit ·
c073435
1
Parent(s): e70d3d9
Update Dockerfile
Browse files- Dockerfile +4 -9
Dockerfile
CHANGED
|
@@ -1,16 +1,11 @@
|
|
| 1 |
-
|
| 2 |
-
FROM alpine
|
| 3 |
|
| 4 |
EXPOSE 8888
|
| 5 |
EXPOSE 80
|
| 6 |
EXPOSE 4443
|
| 7 |
EXPOSE 443
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
| 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"]
|
|
|
|
|
|
|
|
|
|
|
|