Skip to content
This repository was archived by the owner on Apr 10, 2021. It is now read-only.

Commit 4c97509

Browse files
committed
fix
1 parent e86e1a5 commit 4c97509

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 2020
2+
*.sh text eol=lf
3+
*.yml text eol=lf
4+
*.yaml text eol=lf

RawCMS/Program.cs

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ private static void Run()
5151
logger.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
5252
})
5353
.UseNLog()
54+
.UseUrls()
5455
.Build();
5556

5657
host.Run();

docker/demo/api/Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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"]

docker/demo/ui/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+

0 commit comments

Comments
 (0)