Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
refs #12
Browse files Browse the repository at this point in the history
* work in progress on Dockerfile
  • Loading branch information
Bastian Rang committed Aug 2, 2017
1 parent 2f72d0e commit 4578c00
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:7.1-alpine
RUN apk add --no-cache git curl tar
COPY [".", "/opt/rancherize"]
RUN cd /opt/rancherize \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& ./composer.phar install && rm composer.phar
RUN cd /opt/rancherize \
&& curl -SL "https://github.com/rancher/rancher-compose/releases/download/v0.12.5/rancher-compose-linux-amd64-v0.12.5.tar.gz" | tar xz
ENTRYPOINT ["/bin/sh"]

0 comments on commit 4578c00

Please sign in to comment.