Created
January 17, 2018 20:16
-
-
Save gustavonovaes/cbcf1c57850cca94bdafa285d57790bb to your computer and use it in GitHub Desktop.
Diretório vendor é criado no host porém fica inacessível.
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
# docker build . --tag teste | |
# docker run -v `pwd`/vendor:/app/vendor -it teste sh | |
FROM php:7.1-alpine | |
RUN curl -sS https://getcomposer.org/installer | php && \ | |
mv composer.phar /usr/local/bin/composer | |
RUN adduser -D -u 1000 smr | |
USER smr | |
ADD --chown=smr . /app | |
WORKDIR /app | |
RUN echo "{\"require\": {\"vlucas/phpdotenv\": \"^2.0\"}}" >> composer.json | |
RUN composer install --prefer-source --no-interaction --quiet | |
EXPOSE 9000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment