1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

docker support

This commit is contained in:
Kyle Spearrin
2017-08-04 12:21:13 -04:00
parent 83c43bd6ee
commit 4a25abade8
16 changed files with 368 additions and 2 deletions

View File

@ -0,0 +1,3 @@
*
!obj/Docker/publish/*
!obj/Docker/empty/

26
src/Identity/Dockerfile Normal file
View File

@ -0,0 +1,26 @@
FROM microsoft/dotnet:2.0.0-preview2-runtime-jessie
# FROM https://github.com/aspnet/aspnet-docker/blob/master/1.1/jessie/runtime/Dockerfile
# set up network
ENV ASPNETCORE_URLS http://+:80
# set env var for packages cache
ENV DOTNET_HOSTING_OPTIMIZATION_CACHE /packagescache
# set up package cache and other tools
RUN for version in '1.1.2' '1.1.3'; do \
curl -o /tmp/aspnetcore.cache.$version.tar.gz \
https://dist.asp.net/packagecache/$version/debian.8-x64/aspnetcore.cache.tar.gz \
&& mkdir -p /packagescache && cd /packagescache \
&& tar xf /tmp/aspnetcore.cache.$version.tar.gz \
&& rm /tmp/aspnetcore.cache.$version.tar.gz; \
done
# Custom
ARG source
WORKDIR /app
EXPOSE 80
COPY ${source:-obj/Docker/publish} .
ENTRYPOINT ["dotnet", "Identity.dll"]

View File

@ -6,6 +6,7 @@
<AssemblyName>Identity</AssemblyName>
<RootNamespace>Bit.Identity</RootNamespace>
<UserSecretsId>bitwarden-Identity</UserSecretsId>
<DockerComposeProjectPath>..\..\docker\Docker.dcproj</DockerComposeProjectPath>
</PropertyGroup>
<ItemGroup>