Skip to content

Instantly share code, notes, and snippets.

@rawkode
Created June 7, 2017 11:42
Show Gist options
  • Save rawkode/d3276fe51fcc2e7222bbf777c86991d9 to your computer and use it in GitHub Desktop.
Save rawkode/d3276fe51fcc2e7222bbf777c86991d9 to your computer and use it in GitHub Desktop.
Docker Multistage Builds
# 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