50 Star 343 Fork 89

Zoker / Taskover

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
Zoker 提交于 2021-07-22 02:13 . add Port support
FROM ruby:2.6-stretch
MAINTAINER Zoker <kaixuanguiqu@gmail.com>
COPY src/sources.list /etc/apt/sources.list
RUN apt-get update \
&& apt-get install -y \
nodejs \
vim
ARG DATABASE_HOST="10.211.55.2" \
DATABASE_ROOT="3306" \
DATABASE_USER="zoker" \
DATABASE_PASSWORD="zoker" \
DATABASE_NAME="taskover"\
SECRET_KEY_BASE="ASECRETFORBUILD"
COPY ./ /app/taskover/
RUN mkdir -p /app/taskover/tmp/pids/ \
&& cd /app/taskover && mkdir .bundle && cp src/config /app/taskover/.bundle/ \
&& cd /app/taskover && bundle install \
&& cd /app/taskover && cp config/database.yml.example config/database.yml \
&& cd /app/taskover && cp config/puma.rb.example config/puma.rb \
&& cd /app/taskover && cp config/storage.yml.example config/storage.yml \
&& cd /app/taskover && cp config/environments/production.rb.example config/environments/production.rb \
&& cd /app/taskover && bundle exec rake db:migrate RAILS_ENV=production \
&& cd /app/taskover && bundle exec rake assets:precompile RAILS_ENV=production
COPY src/docker-entrypoint.sh /
EXPOSE 3001
ENTRYPOINT ["/bin/bash", "/docker-entrypoint.sh"]
Ruby
1
https://gitee.com/kesin/taskover.git
git@gitee.com:kesin/taskover.git
kesin
taskover
Taskover
master

搜索帮助