Skip to content

Commit d3e579b

Browse files
committed
Trying to fix docker run.
1 parent b0bad4c commit d3e579b

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ WORKDIR /app
2020
RUN dotnet publish -c release -o /out --no-restore
2121
RUN chmod +x ./scripts/pack-app.sh
2222
RUN ./scripts/pack-app.sh
23-
RUN cp -r /app/dist/**/* /out/wwwroot
23+
RUN cp -r /app/dist/* /out/wwwroot/
24+
RUN cp /app/dist/app.settings /out/app.settings
2425
RUN cp -r /app/src /out/src
2526
RUN cp -r /app/typings /out/typings
27+
RUN cp -r /app/dist-mix /out/dist-mix
2628

2729

2830
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime

scripts/deploy/app.settings

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
debug false
2-
name SharpData UI
2+
name Northwind SharpData UI
33
appName sharpdata
4-
description Instant UI for browsing multiple RDBMS's
54

65
# Configure below. Supported dialects: sqlite, mysql, postgres, sqlserver
7-
db DIALECT
8-
db.connection CONNECTION
9-
10-
# Add multiple RDBMS's
11-
# db.connections[dbname] { db:ALT_DIALECT, connection:ALT_CONNECTION }
12-
13-
# Show only user-defined tables:
14-
# args.tables table1,table2
15-
# args.tables_dbname alt_table1,alt_table2
6+
db.connections[northwind] { db:sqlite, connection: 'northwind.sqlite' }

scripts/pack-app.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ mkdir -p dist/assets
44
mkdir -p dist/db
55
mkdir -p dist/custom
66

7-
cp -r wwwroot/db ./dist/db/
7+
x run _bundle.ss -to dist
88

9-
x run _bundle.ss -to dist/
10-
11-
cp -r wwwroot/ dist/
12-
cp scripts/deploy/app.settings dist/wwwroot/app.settings
9+
cp -r wwwroot/* dist/
10+
cp scripts/deploy/app.settings dist/app.settings
1311

1412
cp wwwroot/custom/northwind.js dist-mix/northwind/
1513
cp northwind.sqlite dist-mix/northwindcustom

0 commit comments

Comments
 (0)