homeland-docker icon indicating copy to clipboard operation
homeland-docker copied to clipboard

切换 ubuntu 至 alpinelinux.

Open mimosa opened this issue 8 years ago • 0 comments

  • 测试了 ruby-buildhomelandbundle install --deployment 都没问题。
  • 后续进度会持续更新。
# Dockerfile 需要加环境变量
ENV CONFIGURE_OPTS="ac_cv_func_isnan=yes ac_cv_func_isinf=yes --disable-install-doc" \
    NOKOGIRI_USE_SYSTEM_LIBRARIES=1
# gem install bundler 后需要设:
bundle config --global silence_root_warning 1
bundle config --global build.nokogiri --use-system-libraries
# https://raw.githubusercontent.com/huacnlee/init.d/4c3e898ddee98a2e66db2f2769ac34d8fa8d898d/install_packages

# Basic Commands
apk add --update --no-cache --virtual .tools \
    bash \
    ca-certificates \
    curl \
    git \
    htop \
    tar \
    tzdata \
    openssh-client \
    libressl \
    vim \
&&  rm -rf /var/cache/apk/*

# Build Requirements
apk add --update --no-cache --virtual .build-deps \
    build-base \
    libc-dev \
    libevent-dev \
    libgcc \
    libressl-dev \
    libstdc++ \
    linux-headers \
    pcre-dev \
    readline-dev \
    yaml-dev \
    zlib-dev \
&&  rm -rf /var/cache/apk/*

# Rails Requirements
apk add --update --no-cache --virtual .ruby-deps \
     libffi-dev \
     libgcrypt-dev \
     libxslt-dev \
     libxml2-dev \
&&   rm -rf /var/cache/apk/*

# GEM Requirements
apk add --update-cache --no-cache --virtual .gems-deps  \
     hiredis-dev \
     imagemagick \
     imagemagick-dev \
     postgresql-dev \
     curl-dev \
&&   rm -rf /var/cache/apk/*

# Node.js
apk add --update --no-cache --virtual .nodejs \
     nodejs-current \
     nodejs-current-npm \
     libsass \
     sassc \
&&   rm -rf /var/cache/apk/*

# nginx
# https://raw.githubusercontent.com/huacnlee/init.d/master/install_nginx
apk add --update --no-cache --virtual .nginx \
     nginx \
     nginx-mod-http-image-filter \
     nginx-mod-http-geoip \
&&   rm -rf /var/cache/apk/*

# OK: 412 MiB in 126 packages

mimosa avatar Aug 08 '17 10:08 mimosa