Dockerfile 808 B

1234567891011121314151617181920212223242526
  1. FROM alpine:3.13
  2. LABEL describe="tushan-mtab"
  3. LABEL author ="tushan<admin@mcecy.com>"
  4. WORKDIR /
  5. COPY ./docker/install.sh /install.sh
  6. COPY ./docker/start.sh /start.sh
  7. COPY ./docker/nginx.conf /nginx.conf
  8. COPY ./docker/default.conf /default.conf
  9. COPY ./docker/www.conf /www.conf
  10. COPY ./docker/redis.conf /opt/redis.conf
  11. COPY ./docker/php.ini /php.ini
  12. COPY . /www
  13. RUN chmod +x /install.sh && chmod +x /start.sh && /bin/sh /install.sh && rm /install.sh
  14. EXPOSE 80
  15. CMD ["/bin/bash","/start.sh"]
  16. #构建全平台 docker buildx create --name mybuilder --driver docker-container --use
  17. #构建全平台 docker buildx build --no-cache --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/amd64/v3 -t itushan/mtab --push .
  18. #构建本地镜像 docker build -t itushan/mtab .