mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
docker files for icons
This commit is contained in:
parent
17bd95332f
commit
3484fef2c1
4
src/Icons/.dockerignore
Normal file
4
src/Icons/.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
*
|
||||
!obj/Docker/publish/*
|
||||
!obj/Docker/empty/
|
||||
!entrypoint.sh
|
9
src/Icons/Dockerfile
Normal file
9
src/Icons/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM microsoft/aspnetcore:2.0.0
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
COPY obj/Docker/publish .
|
||||
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
14
src/Icons/build.ps1
Normal file
14
src/Icons/build.ps1
Normal file
@ -0,0 +1,14 @@
|
||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
|
||||
echo "`n## Building Icons"
|
||||
|
||||
echo "`nBuilding app"
|
||||
echo ".NET Core version $(dotnet --version)"
|
||||
echo "Clean"
|
||||
dotnet clean $dir\Icons.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish
|
||||
echo "Publish"
|
||||
dotnet publish $dir\Icons.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish
|
||||
|
||||
echo "`nBuilding docker image"
|
||||
docker --version
|
||||
docker build -t bitwarden/icons $dir\.
|
17
src/Icons/build.sh
Normal file
17
src/Icons/build.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo -e "\n## Building Icons"
|
||||
|
||||
echo -e "\nBuilding app"
|
||||
echo ".NET Core version $(dotnet --version)"
|
||||
echo "Clean"
|
||||
dotnet clean $DIR/Icons.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish
|
||||
echo "Publish"
|
||||
dotnet publish $DIR/Icons.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish
|
||||
|
||||
echo -e "\nBuilding docker image"
|
||||
docker --version
|
||||
docker build -t bitwarden/icons $DIR/.
|
3
src/Icons/entrypoint.sh
Normal file
3
src/Icons/entrypoint.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
dotnet /app/Icons.dll
|
Loading…
x
Reference in New Issue
Block a user