1 Star 0 Fork 0

clarifysky / satis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
Rob Bast 提交于 2017-05-05 10:36 . re-introduce openssh and openssl
FROM php:7-alpine
MAINTAINER https://github.com/composer/satis
RUN apk --no-cache add curl git subversion mercurial openssh openssl tini zlib-dev
RUN docker-php-ext-install zip \
&& echo "memory_limit=-1" > "$PHP_INI_DIR/conf.d/memory-limit.ini" \
&& echo "date.timezone=${PHP_TIMEZONE:-UTC}" > "$PHP_INI_DIR/conf.d/date_timezone.ini"
ENV COMPOSER_HOME /composer
ENV PATH "/composer/vendor/bin:$PATH"
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN mkdir /build \
&& mkdir /composer \
&& chmod -R 777 /composer \
&& curl -sfLo /tmp/composer-setup.php https://getcomposer.org/installer \
&& curl -sfLo /tmp/composer-setup.sig https://composer.github.io/installer.sig \
&& php -r " \
\$hash = hash('SHA384', file_get_contents('/tmp/composer-setup.php')); \
\$signature = trim(file_get_contents('/tmp/composer-setup.sig')); \
if (!hash_equals(\$signature, \$hash)) { \
unlink('/tmp/composer-setup.php'); \
echo 'Integrity check failed, installer is either corrupt or worse.' . PHP_EOL; \
exit(1); \
}" \
&& php /tmp/composer-setup.php --no-ansi --install-dir=/usr/bin --filename=composer \
&& composer --no-interaction --no-ansi --version \
&& rm /tmp/composer-setup.php
WORKDIR /satis
COPY ["composer.json", "composer.lock", "/satis/"]
RUN composer install --no-interaction --no-ansi --no-autoloader --no-scripts --no-plugins --no-dev
COPY bin /satis/bin/
COPY res /satis/res/
COPY views /satis/views/
COPY src /satis/src/
RUN composer dump-autoload --no-interaction --no-ansi --optimize --no-dev
ENTRYPOINT ["/sbin/tini", "-g", "--", "/satis/bin/docker-entrypoint.sh"]
CMD ["--ansi", "-vvv", "build", "/build/satis.json", "/build/output"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/clarifysky/satis.git
git@gitee.com:clarifysky/satis.git
clarifysky
satis
satis
1.x

搜索帮助