Explorar el Código

use docker cache

Sam Erika Clotfelter hace 4 años
padre
commit
c95fc32e0e
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      Dockerfile

+ 5 - 2
Dockerfile

@@ -4,10 +4,13 @@ EXPOSE 8080
 
 RUN apk --no-cache add libsass-dev pcre
 
-COPY . /src/nitter
 WORKDIR /src/nitter
 
-RUN nimble build -y -d:danger -d:lto -d:strip \
+COPY nitter.nimble .
+RUN nimble install -y -d:strip
+
+COPY . .
+RUN nimble build -y -d:danger -d:lto \
     && nimble scss \
     && nimble md