-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (22 loc) · 892 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# TODO: 未完成
# FROM ruby:2.6.5
# RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs yarn vim
# node version指定
# RUN npm install -g n && n 13.12.0 && apt-get purge -y nodejs npm && apt-get autoremove -y
# RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
# && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
# && apt-get update -qq && apt-get install -y yarn
# RUN mkdir /myapp
# WORKDIR /myapp
# ADD Gemfile /myapp/Gemfile
# ADD Gemfile.lock /myapp/Gemfile.lock
# RUN bundle install
# RUN yarn install --check-files
# ADD . /myapp
# Add a script to be executed every time the container starts.
# COPY entrypoint.sh /usr/bin/
# RUN chmod +x /usr/bin/entrypoint.sh
# ENTRYPOINT ["entrypoint.sh"]
# EXPOSE 3000
# Start the main process.
# CMD ["rails", "server", "-b", "0.0.0.0"]