mirror of
https://github.com/bitwarden/server
synced 2026-01-06 02:23:51 +00:00
move attachments and nginx to util folder
This commit is contained in:
2
util/Attachments/.dockerignore
Normal file
2
util/Attachments/.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!entrypoint.sh
|
||||
7
util/Attachments/Dockerfile
Normal file
7
util/Attachments/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM bitwarden/server
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
7
util/Attachments/build.ps1
Normal file
7
util/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
util/Attachments/build.sh
Normal file
10
util/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/.
|
||||
3
util/Attachments/entrypoint.sh
Normal file
3
util/Attachments/entrypoint.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
dotnet /bitwarden_server/Server.dll /etc/bitwarden/core/attachments .
|
||||
Reference in New Issue
Block a user