-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-Uma-Https
24 lines (18 loc) · 978 Bytes
/
Dockerfile-Uma-Https
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM microsoft/dotnet:latest
ENV DB_ALIAS postgresql
ENV DB_PORT 5432
ENV DATA_MIGRATED true
COPY SimpleIdentityServer/SimpleIdentityServer/src /app
WORKDIR /app
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
&& echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list \
&& echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | tee -a /etc/apt/sources.list.d/mono-xamarin.list \
&& echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | tee -a /etc/apt/sources.list.d/mono-xamarin.list \
&& apt-get update \
&& apt-get install -y mono-devel
RUN sed -i 's/\r//' /app/uma-https-entrypoint.sh
RUN sed -i 's/\r//' /app/wait-for-it.sh
RUN chmod +x /app/uma-https-entrypoint.sh && chmod +x /app/wait-for-it.sh
RUN dotnet restore
EXPOSE 5445
ENTRYPOINT ["/app/uma-https-entrypoint.sh"]