Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
17 lines
343 B
Docker
17 lines
343 B
Docker
FROM ruby:2.5
|
|
|
|
LABEL maintainer="phithon <root@leavesongs.com>"
|
|
|
|
RUN set -ex \
|
|
&& cd /usr/src \
|
|
&& gem install rails -v 5.2.2 --no-document \
|
|
&& rails new blog --skip-bundle
|
|
|
|
COPY Gemfile.lock Gemfile /usr/src/blog/
|
|
|
|
WORKDIR /usr/src/blog
|
|
|
|
RUN set -ex \
|
|
&& bundle install
|
|
|
|
CMD ["rails", "server", "-b", "0.0.0.0", "-p", "3000"] |