docker-compose 模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
562 B

3 years ago
FROM php:fpm-alpine
COPY docker-entrypoint.sh php.ini default.conf /
RUN apk add --no-cache \
git \
bash \
nginx \
tzdata \
openssh && \
mkdir -p /run/nginx && \
mv /default.conf /etc/nginx/conf.d && \
mv /php.ini /usr/local/etc/php && \
chmod +x /docker-entrypoint.sh && \
git clone https://github.com/donwa/oneindex.git /var/www/html && \
ssh-keygen -A
EXPOSE 80
# Persistent config file and cache
VOLUME [ "/var/www/html/config", "/var/www/html/cache" ]
ENTRYPOINT [ "/docker-entrypoint.sh" ]