mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
update docker files to official aspnetcore2.0.0
This commit is contained in:
parent
5069814c4f
commit
17bd95332f
@ -1,23 +1,4 @@
|
|||||||
FROM microsoft/dotnet:2.0.0-runtime-jessie
|
FROM microsoft/aspnetcore:2.0.0
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
@ -1,23 +1,4 @@
|
|||||||
FROM microsoft/dotnet:2.0.0-runtime-jessie
|
FROM microsoft/aspnetcore:2.0.0
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
Loading…
x
Reference in New Issue
Block a user