summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2023-06-18 15:17:28 -0700
committerJohn Helmert III <ajak@gentoo.org>2023-06-18 15:17:28 -0700
commit6f2b9a591a06ff734e99d4ca3724f328aa50e99e (patch)
tree17cd2b733e639ec5d941330c8b0f39bfd606dd3c
parentadd missing rss dependency (diff)
downloadsecurity-master.tar.gz
security-master.tar.bz2
security-master.zip
add a simple Dockerfile for local testingHEAD20230618T221847Zmaster
Signed-off-by: John Helmert III <ajak@gentoo.org>
-rw-r--r--Dockerfile18
1 files changed, 18 insertions, 0 deletions
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