1
0
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:
Kyle Spearrin
2017-08-08 17:27:01 -04:00
parent e50b6240e4
commit fecd5b3a1a
13 changed files with 260 additions and 7 deletions

8
attachments/Dockerfile Normal file
View 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
View 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
View 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/.

View File

@@ -0,0 +1,4 @@
#!/bin/sh
http-server /etc/bitwarden/core/attachments/. -p 80 -d false --utc