Created
December 27, 2018 05:09
-
-
Save Alex-Bond/849156fae6ccc9d6b853b7132f8e5f0c to your computer and use it in GitHub Desktop.
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
# 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