Skip to content

Instantly share code, notes, and snippets.

@Alex-Bond
Created December 27, 2018 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alex-Bond/849156fae6ccc9d6b853b7132f8e5f0c to your computer and use it in GitHub Desktop.
Save Alex-Bond/849156fae6ccc9d6b853b7132f8e5f0c to your computer and use it in GitHub Desktop.
# Compile RoadRunner
FROM golang:1.11 as RoadRunner
RUN git clone https://github.com/spiral/roadrunner --branch v1.2.8 /app
WORKDIR /app
RUN ./build.sh Linux
# Build PHP image
FROM php:7.2-cli
RUN docker-php-ext-install opcache && docker-php-ext-enable opcache
COPY --from=RoadRunner /app/rr /usr/local/bin/rr
WORKDIR /var/www
ENTRYPOINT ["/usr/local/bin/rr", "serve", "-c", "/etc/roadrunner/.rr.yaml"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment