Skip to content

Commit

Permalink
update all packages each build to avoid CVEs (sourcegraph#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
davejrt authored Sep 10, 2021
1 parent 62b7b9a commit 1a4a28c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.indexserver
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM alpine

RUN apk add --no-cache ca-certificates bind-tools tini git
RUN apk update --no-cache && apk upgrade --no-cache && \
apk add --no-cache ca-certificates bind-tools tini git

# Run as non-root user sourcegraph. External volumes should be mounted under /data (which will be owned by sourcegraph).
RUN mkdir -p /home/sourcegraph
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.webserver
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM alpine

RUN apk add --no-cache ca-certificates bind-tools tini
RUN apk update --no-cache && apk upgrade --no-cache && \
apk add --no-cache ca-certificates bind-tools tini

# Run as non-root user sourcegraph. External volumes should be mounted under /data (which will be owned by sourcegraph).
RUN mkdir -p /home/sourcegraph
Expand Down

0 comments on commit 1a4a28c

Please sign in to comment.