Skip to content

Instantly share code, notes, and snippets.

@sousatg
Last active October 30, 2018 23:28
Show Gist options
  • Save sousatg/171e59d7675d03a36024ad9c1031a6b9 to your computer and use it in GitHub Desktop.
Save sousatg/171e59d7675d03a36024ad9c1031a6b9 to your computer and use it in GitHub Desktop.
Docker to run PHP scripts
version: "2"
services:
app:
build: .
volumes:
- .:/app
working_dir: /app
FROM php:5.6-fpm
RUN apt update && apt install -y git zlib1g-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
WORKDIR /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment