-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker build for the project is now working
- Loading branch information
Showing
6 changed files
with
27 additions
and
2 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 |
---|---|---|
|
@@ -20,3 +20,4 @@ | |
# Go workspace file | ||
go.work | ||
go.work.sum | ||
bin/ |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM golang:1.22 as build | ||
WORKDIR /workspace | ||
COPY . . | ||
RUN mkdir state | ||
RUN apt update && apt install unzip musl-tools -y | ||
RUN make build-docker | ||
|
||
FROM alpine | ||
WORKDIR / | ||
RUN apk add -u ca-certificates | ||
COPY --from=build /workspace/bin/bitwarden-sdk-server . | ||
COPY --from=build --chown=65532:65532 /workspace/state/ ./state/ | ||
|
||
EXPOSE 9998 | ||
ENV CGO_ENABLED=1 | ||
ENV BW_SECRETS_MANAGER_STATE_PATH='/state' | ||
ENTRYPOINT [ "/bitwarden-sdk-server" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# bitwarden-sdk-server | ||
|
||
This repository contains a simple REST wrapper for the Bitwarden Rust SDK | ||
|
||
# TODO | ||
|
||
Provide installation instructions in case it's installed separately from ESO. |
Binary file not shown.