You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering why there is no Docker image for the CLI. I am sure this is way useful for a lot of people.
For that reason, I just created a pretty basic Dockerfile to build the smallest docker image I have been able to get.
# Smallest glibc based image# 4.25MB on Linux x86_64## After the image is build# 129MB on Linux x86_64FROM busybox:glibc
# Assume the executables are in the current folder. Can be improved downloading from GitHub or simmilar.COPY --chmod=755 bw /usr/local/bin/bw
COPY --chmod=755 bws /usr/local/bin/bws
# Import missing libs from ubuntu image. Assume x86_64 architecture.COPY --from=ubuntu:latest /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/libgcc_s.so.1
COPY --from=ubuntu:latest /lib/x86_64-linux-gnu/libdl.so.2 /lib/libdl.so.2
COPY --from=ubuntu:latest /lib/x86_64-linux-gnu/libstdc++.so.6 /lib/libstdc++.so.6
Hope this helps to create an official Docker image for Bitwarden CLI.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Code Contribution Proposal
I was wondering why there is no Docker image for the CLI. I am sure this is way useful for a lot of people.
For that reason, I just created a pretty basic Dockerfile to build the smallest docker image I have been able to get.
Hope this helps to create an official Docker image for Bitwarden CLI.
Beta Was this translation helpful? Give feedback.
All reactions