Files
vulhub/base/rails/5.2.2/Dockerfile
Aaron 63285f61aa
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
first commit
2025-09-06 16:08:15 +08:00

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"]