From bc8f144d937f65c7a3ddf2d55c353b20485a0a04 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 10 Aug 2022 22:22:37 -0400 Subject: [PATCH] add containerfile --- .containerignore | 10 ++++++++++ Containerfile | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .containerignore create mode 100644 Containerfile diff --git a/.containerignore b/.containerignore new file mode 100644 index 0000000..b553f46 --- /dev/null +++ b/.containerignore @@ -0,0 +1,10 @@ +.git +.gitignore +Dockerfile* +README.md +LICENSE +*.yaml +statefile +spool +vendor +init diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..72a7786 --- /dev/null +++ b/Containerfile @@ -0,0 +1,14 @@ +FROM ruby:3.1.2 + +WORKDIR /srv/ +RUN mkdir /srv/stevefolder +WORKDIR /srv/stevefolder + +COPY Gemfile Gemfile +COPY Gemfile.lock Gemfile.lock +COPY . . +RUN mkdir spool + +RUN bundle install + +ENTRYPOINT ["ruby", "main.rb"]