Skip to content

Commit

Permalink
fix random issue with "source not found" in npm scripts inside container
Browse files Browse the repository at this point in the history
  • Loading branch information
xinaesthete committed Feb 19, 2025
1 parent 5e90433 commit e62ce70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ RUN poetry install --with dev,backend
# Expose the port that Flask will run on
EXPOSE 5055

# something changed causing npm to need this in order for `source` to work in npm scripts
RUN npm config set script-shell "/bin/bash"

# Command to run Gunicorn
CMD ["poetry", "run", "gunicorn", "-w", "1", "-b", "0.0.0.0:5055", "--reload", "--access-logfile", "/app/logs/access.log", "--error-logfile", "/app/logs/error.log", "--capture-output", "mdvtools.dbutils.mdv_server_app:app"]
#CMD ["poetry", "run", "python", "-m", "mdvtools.dbutils.mdv_server_app"]
Expand Down

0 comments on commit e62ce70

Please sign in to comment.