-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New optimized Alpine 3.19 based build
* Dockerfile refactor * Version bump * Code cleanup
- Loading branch information
Showing
4 changed files
with
11 additions
and
22 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 |
---|---|---|
@@ -1,22 +1,14 @@ | ||
FROM vaultwarden/server:1.30.1 | ||
FROM vaultwarden/server:1.30.5-alpine | ||
|
||
RUN apt update && \ | ||
apt install -y \ | ||
RUN apk update && \ | ||
apk add --no-cache \ | ||
tini \ | ||
argon2 \ | ||
nginx-core; \ | ||
apt clean; \ | ||
nginx \ | ||
yq; \ | ||
rm -rf \ | ||
/tmp/* \ | ||
/var/lib/apt/lists/* \ | ||
/var/cache/apk/* \ | ||
/var/tmp/* | ||
RUN mkdir /run/nginx | ||
|
||
|
||
# arm64 or amd64 | ||
ARG PLATFORM | ||
ENV YQ_VER v4.3.2 | ||
RUN curl -L https://github.com/mikefarah/yq/releases/download/${YQ_VER}/yq_linux_${PLATFORM} -o /usr/local/bin/yq \ | ||
&& chmod a+x /usr/local/bin/yq | ||
|
||
COPY --chmod=755 ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh |
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
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