Created
June 27, 2019 11:11
-
-
Save sourovroy/3d6fc299eae268628949c3e40186d8d3 to your computer and use it in GitHub Desktop.
Alpine Dockerfile for PHP, Node and Git
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
FROM alpine:3.10 | |
# Install cURL, Zip, Vim | |
RUN apk update && apk add curl zip vim | |
# Install PHP | |
RUN apk add php7 php7-common php7-curl php7-json php7-zip php7-mbstring php7-openssl php7-phar php7-xml | |
# Install composer | |
RUN curl -sS https://getcomposer.org/installer | php -- \ | |
--install-dir=/usr/bin --filename=composer \ | |
&& chmod +x /usr/bin/composer | |
# Install node | |
RUN apk add nodejs nodejs-npm | |
# Install Git and SVN | |
RUN apk add git subversion | |
# Copy project builder app to container OS | |
COPY project-builder /root/project-builder | |
# Run process command on startup | |
ENTRYPOINT ["/usr/bin/php", "/root/project-builder/app.php"] | |
EXPOSE 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment