Skip to content

Instantly share code, notes, and snippets.

@mtigdemir
Created April 12, 2018 14:54
Show Gist options
  • Save mtigdemir/aa9e8e4e636126a4229c8797fb2a4412 to your computer and use it in GitHub Desktop.
Save mtigdemir/aa9e8e4e636126a4229c8797fb2a4412 to your computer and use it in GitHub Desktop.
Deployer Docker Image
FROM php:7.1-cli-alpine
## Install SSH and Rsync
RUN apk add --no-cache openssh rsync
## Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
## Install Deployer with recipes
RUN composer global require deployer/deployer
RUN composer global require deployer/recipes --dev
## Add Composer vendor into PATH
ENV PATH /root/.composer/vendor/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment