Skip to content

Unable to run app in Docker container #1213

@jvwong

Description

@jvwong

Can no longer seem to run the app in a Docker container. The image builds fine locally and on DockerHub.

Another strange observations is that you can run the production image if you don't have any newly built factoid images on your system, but not if you run the production image after you build locally or use the recent unstable image, it fails in the same way.

To reproduce

  • In factoid: $ docker build --no-cache -t pathwaycommons/factoid:local .
  • In factoid-docker-config: docker-compose up --no-deps --detach db webapp

Error logs:

2023-10-26 10:34:24 > factoid@0.24.0 start
2023-10-26 10:34:24 > node -r esm ./src/server
2023-10-26 10:34:24 
2023-10-26 10:34:25 /home/appuser/app/node_modules/esm/esm.js:1
2023-10-26 10:34:25 const __global__ = this;(function (require, module, __shared__) { var __shared__;const e=modul
...
Node(),a=this.type===De.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argume2023-10-26T14:33:39.555040746Z (node:89) DeprecationWarning: Module.chunks: Use Module.forEachChunk/mapChunks/getNumberOfChunks/isInChunk/addChunk/removeChunk instead
2023-10-26 10:33:39 (Use `node --trace-deprecation ...` to show where the warning was created)
...
webapp exited with code 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions