Skip to content

Commit 82b70f2

Browse files
authored
Merge pull request #67 from Daethyra/main
Fix for Issue #66 | Docker run fails due to "Cannot find module '/home/myuser/dist/main.js'" | Error in Docker container
2 parents ce35f4d + 0bf04f7 commit 82b70f2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ storage
88

99
# installed files
1010
node_modules
11+
12+
# ignore base image 'main.js'
13+
main.js

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ RUN npm --quiet set progress=false \
4545
# for most source file changes.
4646
COPY --chown=myuser . ./
4747

48-
4948
# Run the image. If you know you won't need headful browsers,
5049
# you can remove the XVFB start script for a micro perf gain.
51-
CMD ./start_xvfb_and_run_cmd.sh && npm run start:prod --silent
50+
CMD ./start_xvfb_and_run_cmd.sh && npm run start:prod --silent

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"start": "npm run start:dev",
3333
"start:cli": "cross-env NODE_ENV=development npm run build && node dist/src/cli.js",
3434
"start:dev": "cross-env NODE_ENV=development npm run build && node dist/src/main.js",
35-
"start:prod": "node dist/main.js",
35+
"start:prod": "node dist/src/main.js",
3636
"build": "tsc",
3737
"fmt": "prettier --write ."
3838
},

0 commit comments

Comments
 (0)