Created
June 7, 2017 11:42
-
-
Save rawkode/d3276fe51fcc2e7222bbf777c86991d9 to your computer and use it in GitHub Desktop.
Docker Multistage Builds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Node Tasks | |
FROM node:latest as node | |
COPY . /code | |
WORKDIR /code | |
RUN npm install | |
# PHP Tasks | |
FROM php:7.1 | |
COPY --from=node /code/node_modules /app | |
RUN composer install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment