1 Star 2 Fork 5

西门飘雪 / app-host

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 587 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM ruby:2.5.1
ENV RAILS_ENV production
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
imagemagick \
libsqlite3-dev \
nginx \
&& rm -rf /var/lib/apt/lists/*
RUN gem sources --add https://gems.ruby-china.com --remove https://rubygems.org/
RUN gem install bundler
WORKDIR /app
ADD Gemfile* ./
RUN bundle install
COPY . .
COPY docker/nginx.conf /etc/nginx/sites-enabled/app.conf
# 编译静态文件
RUN rake assets:precompile
EXPOSE 8686
CMD /bin/bash docker/check_prereqs.sh && service nginx start && puma -C config/puma.rb
1
https://gitee.com/whsnow/app-host.git
git@gitee.com:whsnow/app-host.git
whsnow
app-host
app-host
master

搜索帮助