File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020# Ruby 2.5 OpenWhisk Runtime Container
2121
22+ ## Next Release
23+ - Install latest security fixes with every image build.
24+
2225## 1.15.0
2326 - Build proxy using golang 1.15 and openwhisk-runtime-go 1.16.0 (#48 )
2427
Original file line number Diff line number Diff line change @@ -27,8 +27,16 @@ RUN gem install \
2727 activesupport `#optional` \
2828 jwt `#optional`
2929
30- # create src directory to store action files
31- RUN mkdir -p /action/src
30+
31+ RUN \
32+ apt-get -y update \
33+ # Upgrade installed packages to get latest security fixes if the base image does not contain them already.
34+ && apt-get upgrade -y --no-install-recommends \
35+ # Cleanup apt data, we do not need them later on.
36+ && rm -rf /var/lib/apt/lists/* \
37+ # create src directory to store action files
38+ && mkdir -p /action/src
39+
3240ADD rackapp /action/rackapp/
3341COPY config.ru /action
3442
Original file line number Diff line number Diff line change 1919
2020# Ruby 2.6 OpenWhisk Runtime Container
2121
22+ ## Next Release
23+ - Install latest security fixes with every image build.
24+
2225## 1.15.0
2326 - Build proxy using golang 1.15 and openwhisk-runtime-go 1.16.0 (#48)
2427
Original file line number Diff line number Diff line change @@ -33,7 +33,15 @@ FROM ruby:2.6
3333# select the builder to use
3434ARG GO_PROXY_BUILD_FROM=release
3535
36- RUN mkdir -p /proxy/bin /proxy/lib /proxy/action
36+ RUN \
37+ apt-get -y update \
38+ # Upgrade installed packages to get latest security fixes if the base image does not contain them already.
39+ && apt-get upgrade -y --no-install-recommends \
40+ # Cleanup apt data, we do not need them later on.
41+ && rm -rf /var/lib/apt/lists/* \
42+ # Create required directories
43+ && mkdir -p /proxy/bin /proxy/lib /proxy/action
44+
3745WORKDIR /proxy
3846COPY --from=builder_source /bin/proxy /bin/proxy_source
3947COPY --from=builder_release /bin/proxy /bin/proxy_release
You can’t perform that action at this time.
0 commit comments