Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +21 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,25 @@
|
|
| 1 |
FROM debian:stable-slim
|
|
|
|
| 2 |
WORKDIR app
|
|
|
|
| 3 |
COPY app ./app
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
CMD ["/app/app"]
|
|
|
|
| 1 |
FROM debian:stable-slim
|
| 2 |
+
|
| 3 |
WORKDIR app
|
| 4 |
+
|
| 5 |
COPY app ./app
|
| 6 |
+
|
| 7 |
+
RUN chmod +x /app/app && /app/app -h && apt-get update && apt-get install -y curl ca-certificates && apt-get clean
|
| 8 |
+
|
| 9 |
+
COPY <<-"EOF" /app/resolv.conf
|
| 10 |
+
nameserver 1.1.1.1
|
| 11 |
+
nameserver 1.0.0.1
|
| 12 |
+
nameserver 2606:4700:4700::1111
|
| 13 |
+
nameserver 2606:4700:4700::1002
|
| 14 |
+
EOF
|
| 15 |
+
|
| 16 |
+
COPY --chmod=755 <<-"EOF" /entrypoint.sh
|
| 17 |
+
#!/bin/bash
|
| 18 |
+
cat /app/resolv.conf > /etc/resolv.conf
|
| 19 |
+
sleep 3
|
| 20 |
+
exec "$@"
|
| 21 |
+
EOF
|
| 22 |
+
|
| 23 |
+
ENTRYPOINT ["/entrypoint.sh"]
|
| 24 |
+
|
| 25 |
CMD ["/app/app"]
|