-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup apk after install update for security notes add no-cache to apk
- Loading branch information
1 parent
a715933
commit 5c90baa
Showing
3 changed files
with
40 additions
and
0 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
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,7 @@ | ||
# Development Tools | ||
This directory has configuration and support files for external tools that are | ||
used in Wrapture development. | ||
|
||
|
||
## docker | ||
Contains the Dockerfile used to build the wrapture container image. |
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,22 @@ | ||
FROM ruby:3.3.5-alpine3.20 | ||
|
||
# copy the build-necessary source into the container | ||
WORKDIR /usr/src/wrapture | ||
COPY bin ./bin | ||
COPY lib ./lib | ||
COPY sig ./sig | ||
COPY Gemfile wrapture.gemspec ./ | ||
|
||
# set up the environment for the build | ||
RUN apk update \ | ||
&& apk add --no-cache --virtual build-dependencies build-base \ | ||
&& bundle install \ | ||
&& gem build --output wrapture.gem wrapture.gemspec \ | ||
&& gem install wrapture.gem \ | ||
&& apk del build-dependencies \ | ||
&& addgroup -S wrapture \ | ||
&& adduser -S wrapture -G wrapture | ||
|
||
# set the user to wrapture | ||
WORKDIR /home/wrapture | ||
USER wrapture |