Explorar o código

better 2-staged Dockerfile for development

Tomás Pinho %!s(int64=6) %!d(string=hai) anos
pai
achega
27f98a55cc
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      Dockerfile

+ 5 - 5
Dockerfile

@@ -6,12 +6,12 @@ RUN mkdir -p $WORKDIR
 
 WORKDIR $WORKDIR
 
-ADD . .
-
 RUN apt-get update
 
-RUN apt-get install -y bc build-essential dkms
+RUN apt-get install -y bc build-essential dkms linux-headers-$(uname -r)
 
-CMD /bin/bash
+FROM build
+
+ADD . .
 
-# make KVER=4.15.0-46-generic
+CMD /bin/bash