Skip to content
Permalink
Browse files

Multistage Docker build

  • Loading branch information...
hombit committed Jul 10, 2017
1 parent 5f657fc commit da187f86186cdacac0567bad160a1cb40283d728
Showing with 9 additions and 3 deletions.
  1. +1 −0 .dockerignore
  2. +8 −3 Dockerfile
@@ -1,6 +1,4 @@
FROM ubuntu:16.04

MAINTAINER Konstantin Malanchev <malanchev@sai.msu.ru>
FROM ubuntu:16.04 as builder

ENV PACKAGES "g++ make libboost-all-dev"
ENV SOURCE "/tmp/freddi"
@@ -19,6 +17,13 @@ RUN apt-get update &&\
rm -rf /var/lib/apt/lists/* &&\
truncate -s 0 /var/log/*log


FROM alpine

LABEL maintainer="Konstantin Malanchev <malanchev@sai.msu.ru>"

COPY --from=builder /usr/local/bin/freddi /usr/local/bin/freddi

VOLUME /data
WORKDIR /
ENTRYPOINT ["/usr/local/bin/freddi", "--dir=/data"]

0 comments on commit da187f8

Please sign in to comment.
You can’t perform that action at this time.