Skip to content

Commit

Permalink
avoid unnessecary layer rebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed May 25, 2018
1 parent be6342d commit 0346285
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.lambda
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM python:3.6
ARG ZIPFILE=lambda.zip
RUN apt-get update && apt-get install -y zip
WORKDIR /lambda

Expand All @@ -13,9 +12,10 @@ RUN find /lambda -type d | xargs chmod ugo+rx && \
find /lambda -type f | xargs chmod ugo+r

RUN python -m compileall -q /lambda

ARG ZIPFILE=lambda.zip
RUN zip --quiet -9r /${ZIPFILE} .

FROM alpine:3.6
FROM scratch
ARG ZIPFILE
RUN echo ${ZIPFILE}
COPY --from=0 /${ZIPFILE} /

0 comments on commit 0346285

Please sign in to comment.