mirror of
https://github.com/bitwarden/server
synced 2026-01-07 11:03:37 +00:00
local attachment storage & docker image
This commit is contained in:
8
attachments/Dockerfile
Normal file
8
attachments/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM node
|
||||
|
||||
RUN npm install http-server -g
|
||||
EXPOSE 80
|
||||
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
7
attachments/build.ps1
Normal file
7
attachments/build.ps1
Normal file
@@ -0,0 +1,7 @@
|
||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
|
||||
echo "`n# Building Attachments"
|
||||
|
||||
echo "`nBuilding docker image"
|
||||
docker --version
|
||||
docker build -t bitwarden/attachments $dir\.
|
||||
10
attachments/build.sh
Normal file
10
attachments/build.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
|
||||
echo -e "\n# Building Attachments"
|
||||
|
||||
echo -e "\nBuilding docker image"
|
||||
docker --version
|
||||
docker build -t bitwarden/attachments $DIR/.
|
||||
4
attachments/entrypoint.sh
Normal file
4
attachments/entrypoint.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
http-server /etc/bitwarden/core/attachments/. -p 80 -d false --utc
|
||||
|
||||
Reference in New Issue
Block a user