Explorar el Código

Test

tags/v0.0.37^0
Peter Vivell hace 6 años
padre
commit
9fc1440b22
Se han modificado 1 ficheros con 12 adiciones y 7 borrados
  1. 12
    7
      Dockerfile

+ 12
- 7
Dockerfile Ver fichero

@@ -1,12 +1,17 @@
1 1
 FROM debian:stable-slim
2 2
 
3
-RUN apt-get update && \
4
-    apt-get --yes upgrade && \
5
-    apt-get --yes install iproute2 ; \
6
-    echo 'export http_proxy=http://$(ip route list exact 0.0.0.0/0 | head -1 | cut -d" " -f3):3142/' >> /etc/profile ; \
7
-    . /etc/profile
3
+RUN echo 'export http_proxy=http://$(ip route list exact 0.0.0.0/0 | head -1 | cut -d" " -f3):3142/' >> /etc/profile
8 4
 
9 5
 ARG BUILDDEPS
10
-RUN apt-get --yes install build-essential ca-certificates curl git ${BUILDDEPS}
6
+RUN \
7
+    echo 'export http_proxy=http://$(ip route list exact 0.0.0.0/0 | head -1 | cut -d" " -f3):3142/' >> /etc/profile ; \
8
+    apt-get update && apt-get --yes upgrade && \
9
+    apt-get --yes install iproute2 ; . /etc/profile ; \
10
+    apt-get --yes install \
11
+        build-essential \
12
+        ca-certificates \
13
+        curl \
14
+        git \
15
+        ${BUILDDEPS}
11 16
 
12
-CMD ["bash"]
17
+CMD ["bash", "-c", "pwd; echo $PATH"]

Loading…
Cancelar
Guardar