-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from mocdaniel/hardened-image
Remove all CVEs from Showoff image by updating Dockerfile
- Loading branch information
Showing
8 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.deb filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.* | ||
!.gitignore | ||
!.gitattributes | ||
static | ||
stats | ||
trainer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM docker.io/ubuntu:focal | ||
FROM docker.io/ubuntu:lunar | ||
LABEL maintainer="[email protected]" | ||
|
||
WORKDIR /training | ||
|
@@ -17,8 +17,7 @@ RUN set -ex; \ | |
xz-utils \ | ||
zlib1g \ | ||
zlib1g-dev \ | ||
libssl1.1 \ | ||
libssl-dev \ | ||
libssl3 \ | ||
libxrender-dev \ | ||
libx11-dev \ | ||
libxext-dev \ | ||
|
@@ -32,19 +31,19 @@ RUN set -ex; \ | |
&& rm -r /var/lib/apt/lists/* | ||
|
||
# wkhtmltopdf needs a patched QT version | ||
ADD vendor/wkhtmltox_0.12.5-1.focal_amd64.deb /tmp/wkhtmltox_0.12.5-1.focal_amd64.deb | ||
ADD vendor/wkhtmltox_0.12.6.1-2.jammy_amd64.deb /tmp/wkhtmltox.deb | ||
RUN set -ex; \ | ||
dpkg -i /tmp/wkhtmltox_0.12.5-1.focal_amd64.deb \ | ||
&& rm -f /tmp/wkhtmltox_0.12.5-1.focal_amd64.deb | ||
dpkg -i /tmp/wkhtmltox.deb \ | ||
&& rm -f /tmp/wkhtmltox.deb | ||
|
||
# Install showoff Gem | ||
ARG showoff_version=0.20.3 | ||
RUN gem install showoff --version="$showoff_version" | ||
|
||
ADD extras/showoff.patch /tmp/showoff.patch | ||
|
||
RUN cd /var/lib/gems/*/gems/showoff-*/lib \ | ||
&& patch -p1 < /tmp/showoff.patch | ||
ARG showoff_version=0.20.4 | ||
RUN set -ex; \ | ||
gem install showoff --version="$showoff_version" \ | ||
# uri v0.11.0 (installed as dependency for showoff) contains CVE-2023-28755 | ||
# so we upgrade and delete the default manually. This might be removed in the future | ||
# Note that the Ruby 3.1.0 path might change when updating the distro | ||
&& GEM_HOME=/usr/lib/ruby/gems/3.1.0/ gem install --default uri; rm -f /usr/lib/ruby/gems/3.1.0/specifications/default/uri-0.11*; | ||
|
||
EXPOSE 9090 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
RUNTIME?=docker | ||
VERSION?=0.20.3 | ||
VERSION?=0.20.4 | ||
|
||
image: | ||
$(RUNTIME) build --pull -t docker.io/netways/showoff:$(VERSION) . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Git LFS file not shown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters