devops

davehodge 2019-06-19T14:25:18.000800Z

Started playing with distroless containers from Google: `FROM clojure AS build-env RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY project.clj /usr/src/app/ RUN lein deps COPY . /usr/src/app RUN mv “$(lein uberjar | sed -n ‘s/^Created \(.*standalone\.jar\)/\1/p’)” app-standalone.jar FROM http://gcr.io/distroless/java:8 COPY --from=build-env /usr/src/app /usr/src/app WORKDIR /usr/src/app CMD [“app-standalone.jar”]`

davehodge 2019-06-19T14:25:49.001Z

https://github.com/GoogleContainerTools/distroless