From 6f2b9a591a06ff734e99d4ca3724f328aa50e99e Mon Sep 17 00:00:00 2001 From: John Helmert III Date: Sun, 18 Jun 2023 15:17:28 -0700 Subject: add a simple Dockerfile for local testing Signed-off-by: John Helmert III --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bda4038 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM ruby:3.0 + +RUN apt update +RUN apt install -y make gcc g++ ruby-dev ruby-bundler git thin + +COPY . /var/www/security + +WORKDIR /var/www/security/data + +RUN git clone https://anongit.gentoo.org/git/data/glsa.git + +EXPOSE 9995 + +WORKDIR /var/www/security + +RUN bundle install --deployment + +CMD bundle exec thin -p 9995 start -- cgit v1.2.3-65-gdbad