fix: better Dockerfiles

This commit is contained in:
Tobias Reisinger 2019-08-17 02:07:01 +02:00
parent a5496d6fe1
commit a33e8f2c05
2 changed files with 34 additions and 1 deletions

View file

@ -1,4 +1,4 @@
FROM drogonframework/drogon
FROM drogonframework/drogon AS installer
ENV CORE_ROOT=$IROOT/core
@ -10,4 +10,10 @@ WORKDIR $CORE_ROOT
RUN ./build.sh
FROM drogonframework/drogon
COPY --from=installer /srv/core /srv/core
EXPOSE 5000
ENTRYPOINT ["/srv/core"]