This repository was archived by the owner on Apr 10, 2021. It is now read-only.
File tree 4 files changed +45
-0
lines changed
4 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ # 2020
2
+ * .sh text eol =lf
3
+ * .yml text eol =lf
4
+ * .yaml text eol =lf
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ private static void Run()
51
51
logger . SetMinimumLevel ( Microsoft . Extensions . Logging . LogLevel . Trace ) ;
52
52
} )
53
53
. UseNLog ( )
54
+ . UseUrls ( )
54
55
. Build ( ) ;
55
56
56
57
host . Run ( ) ;
Original file line number Diff line number Diff line change
1
+ FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
2
+ WORKDIR /app
3
+ EXPOSE 80
4
+ EXPOSE 443
5
+
6
+ FROM microsoft/dotnet:2.1-sdk AS build
7
+ WORKDIR /src
8
+ COPY ./docker/config/api/buildscript.sh ./build.sh
9
+ COPY . .
10
+
11
+ RUN chmod +x ./build.sh && ./build.sh
12
+
13
+
14
+ FROM base AS final
15
+ WORKDIR /app
16
+ COPY --from=build /dist .
17
+ ENTRYPOINT ["dotnet" , "RawCMS.dll" ]
Original file line number Diff line number Diff line change
1
+ FROM nginx:alpine
2
+
3
+ # !/bin/sh
4
+
5
+ COPY ./docker/config/ui/nginx.conf /etc/nginx/nginx.conf
6
+ COPY ./docker/config/ui/bootstrap.sh /bootstrap.sh
7
+
8
+ # # Remove default nginx index page
9
+ RUN rm -rf /usr/share/nginx/html/*
10
+
11
+ # Copy from the stahg 1
12
+ COPY ./raw-cms-app/src /usr/share/nginx/html
13
+
14
+ # Add bash
15
+ RUN apk add --no-cache bash
16
+
17
+ EXPOSE 80
18
+ EXPOSE 4200 80
19
+
20
+ CMD ["/bin/bash" , "-c" , " sudo /bootstrap.sh && sudo nginx -g \" daemon off;\" " ]
21
+
22
+
23
+
You can’t perform that action at this time.
0 commit comments