-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18f5570
commit 2508210
Showing
2 changed files
with
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
ARG VERSION=1.31.0 | ||
ARG UID=3001 | ||
ARG GID=3001 | ||
|
||
FROM vaultwarden/server:${VERSION}-alpine | ||
|
||
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
ARG UID | ||
ARG GID | ||
|
||
RUN apk -U upgrade \ | ||
&& apk add libstdc++ \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
COPY --from=ghcr.io/blue-oci/hardened_malloc:latest /extract /usr/local/lib/ | ||
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so" | ||
|
||
RUN adduser -g ${GID} -u ${UID} --disabled-password --gecos "" vaultwarden | ||
RUN chown -R vaultwarden:vaultwarden /data | ||
USER vaultwarden | ||
|
||
ENV ROCKET_PORT=8080 | ||
EXPOSE 8080/tcp |
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