File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,5 @@ RUN dotnet publish "Web.csproj" -c Release -o /app/publish
19
19
FROM base AS final
20
20
WORKDIR /app
21
21
COPY --from=publish /app/publish .
22
+ COPY nginx.conf /etc/nginx/nginx.conf
22
23
ENTRYPOINT ["dotnet" , "Web.dll" ]
Original file line number Diff line number Diff line change
1
+ events { }
2
+ http {
3
+ include mime.types;
4
+ types {
5
+ application/wasm wasm;
6
+ }
7
+
8
+ server {
9
+ listen 80 ;
10
+
11
+ # Here, we set the location for Nginx to serve the files
12
+ # by looking for index.html
13
+ location / {
14
+ root /usr/local/webapp/nginx/html;
15
+ try_files $uri $uri / /index.html =404 ;
16
+ }
17
+ }
18
+ }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ services:
16
16
dotnet_app :
17
17
build : ./Web
18
18
ports :
19
- - " 8080:80 "
19
+ - " 8080"
20
20
# depends_on:
21
21
# - mysql_db
22
22
You can’t perform that action at this time.
0 commit comments