Skip to content

Commit

Permalink
Trying to fix docker run.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Apr 21, 2021
1 parent b0bad4c commit d3e579b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ WORKDIR /app
RUN dotnet publish -c release -o /out --no-restore
RUN chmod +x ./scripts/pack-app.sh
RUN ./scripts/pack-app.sh
RUN cp -r /app/dist/**/* /out/wwwroot
RUN cp -r /app/dist/* /out/wwwroot/
RUN cp /app/dist/app.settings /out/app.settings
RUN cp -r /app/src /out/src
RUN cp -r /app/typings /out/typings
RUN cp -r /app/dist-mix /out/dist-mix


FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
Expand Down
13 changes: 2 additions & 11 deletions scripts/deploy/app.settings
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
debug false
name SharpData UI
name Northwind SharpData UI
appName sharpdata
description Instant UI for browsing multiple RDBMS's

# Configure below. Supported dialects: sqlite, mysql, postgres, sqlserver
db DIALECT
db.connection CONNECTION

# Add multiple RDBMS's
# db.connections[dbname] { db:ALT_DIALECT, connection:ALT_CONNECTION }

# Show only user-defined tables:
# args.tables table1,table2
# args.tables_dbname alt_table1,alt_table2
db.connections[northwind] { db:sqlite, connection: 'northwind.sqlite' }
8 changes: 3 additions & 5 deletions scripts/pack-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ mkdir -p dist/assets
mkdir -p dist/db
mkdir -p dist/custom

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

x run _bundle.ss -to dist/

cp -r wwwroot/ dist/
cp scripts/deploy/app.settings dist/wwwroot/app.settings
cp -r wwwroot/* dist/
cp scripts/deploy/app.settings dist/app.settings

cp wwwroot/custom/northwind.js dist-mix/northwind/
cp northwind.sqlite dist-mix/northwindcustom
Expand Down

0 comments on commit d3e579b

Please sign in to comment.