From 35a68a6fed63adc5a71add1ea590c2be0617a068 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 12 Mar 2024 13:29:48 +0000 Subject: [PATCH 1/3] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN10-OPENSSL-1569403 - https://snyk.io/vuln/SNYK-DEBIAN10-OPENSSL-2807585 - https://snyk.io/vuln/SNYK-DEBIAN10-OPENSSL-2933515 - https://snyk.io/vuln/SNYK-DEBIAN10-SYSTEMD-3339153 - https://snyk.io/vuln/SNYK-DEBIAN10-SYSTEMD-3339153 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9a5777dba31..6822171131e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:2.6.3-slim +FROM ruby:2.7.8-slim LABEL maintainer Travis CI GmbH # packages required for bundle install From 90282a4d21807ce9618858e7b6acebd28c595e69 Mon Sep 17 00:00:00 2001 From: Rex <57047920+rexingQ@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:35:57 +0000 Subject: [PATCH 2/3] Update Dockerfile --- Dockerfile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6822171131e..b9d0aecb8b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,3 +33,46 @@ RUN bundle exec rake build COPY . /app CMD bundle exec puma -p 4000 +  + + + + + + 3D Space with Socks + + + + + + + \ No newline at end of file From 8054e2407bcffb95f7b25bc1c314d18419f40938 Mon Sep 17 00:00:00 2001 From: Rex <57047920+rexingQ@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:38:32 +0000 Subject: [PATCH 3/3] Update Dockerfile1 --- Dockerfile | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/Dockerfile b/Dockerfile index b9d0aecb8b3..d2462e183f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,83 @@ COPY . /app RUN bundle exec rake build COPY . /app +CMD bundle exec puma -p 4000 +  + + + + + + 3D Space with Socks + + + + + + +FROM ruby:2.7.8-slim +LABEL maintainer Travis CI GmbH + +# packages required for bundle install +RUN ( \ + apt-get update ; \ + apt-get install -y --no-install-recommends git make gcc g++ libpq-dev libcurl4-openssl-dev curl \ + && rm -rf /var/lib/apt/lists/* \ +) + +# ------ +# Set the encoding to UTF-8 +ENV LC_ALL C.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US.UTF-8 +# ----- +ENV WEBHOOK_PAYLOAD_GIST_ID 4e317d6e71be6d0278be46bb751b2f78 + +# throw errors if Gemfile has been modified since Gemfile.lock +RUN bundle config --global frozen 1 +RUN mkdir -p /app + +WORKDIR /app +COPY Gemfile /app +COPY Gemfile.lock /app + +RUN gem install bundler +RUN bundler install --verbose --retry=3 +RUN gem install --user-install executable-hooks + +COPY . /app +RUN bundle exec rake build +COPY . /app + CMD bundle exec puma -p 4000