u
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
node_modules
|
||||
node_modules/*
|
||||
!node_modules/better-sqlite3
|
||||
!node_modules/canvas
|
||||
!node_modules/@img
|
||||
!node_modules/sharp
|
||||
dist/*
|
||||
!dist/dashback
|
||||
data
|
||||
certs
|
||||
.git
|
||||
@@ -8,3 +14,4 @@ certs
|
||||
*.log
|
||||
docs/api
|
||||
scratch
|
||||
|
||||
|
||||
10
Dockerfile
10
Dockerfile
@@ -16,13 +16,13 @@ COPY --from=syslibs /usr/lib/x86_64-linux-gnu/libxml2.so* /usr/lib/x86_64-linux-
|
||||
COPY --from=syslibs /usr/lib/x86_64-linux-gnu/libfribidi.so* /usr/lib/x86_64-linux-gnu/
|
||||
|
||||
# The standalone SEA binary contains Node.js runtime, src/, package.json, and all app logic
|
||||
COPY dashback/dist/dashback ./dist/dashback
|
||||
COPY dist/dashback ./dist/dashback
|
||||
|
||||
# Only native C++ addon packages required by OS dynamic linker (dlopen)
|
||||
COPY dashback/node_modules/better-sqlite3 ./node_modules/better-sqlite3
|
||||
COPY dashback/node_modules/canvas ./node_modules/canvas
|
||||
COPY dashback/node_modules/@img ./node_modules/@img
|
||||
COPY dashback/node_modules/sharp ./node_modules/sharp
|
||||
COPY node_modules/better-sqlite3 ./node_modules/better-sqlite3
|
||||
COPY node_modules/canvas ./node_modules/canvas
|
||||
COPY node_modules/@img ./node_modules/@img
|
||||
COPY node_modules/sharp ./node_modules/sharp
|
||||
|
||||
# Set production defaults: port 4208
|
||||
ENV NODE_ENV=production \
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
services:
|
||||
dashback:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: dashback/Dockerfile
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: dashback:latest
|
||||
container_name: dashback
|
||||
read_only: true
|
||||
|
||||
Reference in New Issue
Block a user