Skip to content

Commit

Permalink
redis and go app updates for security
Browse files Browse the repository at this point in the history
  • Loading branch information
deronsmith committed Mar 27, 2024
1 parent a0f8281 commit 8248617
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ RUN find /opt/conda/ -name 'localhost.key' -delete || true
RUN find /opt/conda/ -name 'server.pem' -delete || true
RUN find /opt/conda/ -name 'client.pem' -delete || true
RUN find /opt/conda/ -name 'password_protected.pem' -delete || true
RUN find /opt -name 'redis-server' -delete
# ------------------------- #
USER cyano

Expand Down
7 changes: 6 additions & 1 deletion Dockerfile_Redis
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM redis:7.2.4-alpine

RUN apk add --upgrade go
RUN apk add --upgrade apk-tools
RUN apk upgrade --available

#------ vulnerability fixes ------#
RUN apk del go
COPY --from=tianon/gosu /gosu /usr/local/bin/
RUN find /usr/lib -name *.pem -delete
#---------------------------------#

0 comments on commit 8248617

Please sign in to comment.