"Fossies" - the Fresh Open Source Software Archive

Member "wire-server-2021-10-01/build/alpine/Dockerfile.fast-intermediate" (4 Oct 2021, 800 Bytes) of package /linux/misc/wire-server-2021-10-01.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Produces intermediate docker image with all executables under /dist using fast option
    2 
    3 # Requires docker version >= 17.05 (requires support for multi-stage builds)
    4 # Requires to have created the wire-server-builder and wire-server-deps docker images (run `make` in this directory)
    5 # Usage example:
    6 #   (from wire-server root directory)
    7 #   docker build -f build/alpine/Dockerfile.fastintermediate .
    8 
    9 ARG builder=quay.io/wire/alpine-builder
   10 ARG deps=quay.io/wire/alpine-deps
   11 
   12 #--- Builder stage ---
   13 FROM ${builder} as builder
   14 
   15 WORKDIR /wire-server/
   16 
   17 COPY . /wire-server/
   18 
   19 RUN make clean fast
   20 
   21 #--- Minified stage ---
   22 FROM ${deps}
   23 
   24 COPY --from=builder /wire-server/dist/ /dist/
   25 # brig also needs some templates.
   26 COPY --from=builder /wire-server/services/brig/deb/opt/brig/templates/ /dist/templates/