Skip to content

Commit

Permalink
Merge pull request #227 from VisLab/develop
Browse files Browse the repository at this point in the history
Updated the docker configuration back to internal 0.0.0.0
  • Loading branch information
VisLab authored Oct 4, 2024
2 parents 8a6d6b9 + 43ab430 commit e56998b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deploy_hed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN mkdir -p /var/log/hedtools && \
# Copy the application code into the container
COPY ./hedtools /root/hedtools/
COPY ./hedtools/hedweb /root/hedtools/hedweb/
./hedtools/hedweb/runserver.py /root/
#COPY ./hedtools/hedweb/runserver.py /root/

# Set the PYTHONPATH environment variable to include /root/hedtools
ENV PYTHONPATH="/root/hedtools"
Expand All @@ -40,4 +40,4 @@ ENV HEDTOOLS_CONFIG_CLASS=config.ProductionConfig
EXPOSE 80

# Run the Flask application with Gunicorn, binding to port 33000
CMD ["gunicorn", "-w", "4", "-b", "127.0.0.1:80", "runserver:app"]
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:80", "hedtools.hedweb.runserver:app"]
6 changes: 3 additions & 3 deletions deploy_hed_dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN mkdir -p /var/log/hedtools && \
# Copy the application code into the container
COPY ./hedtools /root/hedtools/
COPY ./hedtools/hedweb /root/hedtools/hedweb/
COPY ./hedtools/hedweb/runserver.py /root/
# COPY ./hedtools/hedweb/runserver.py /root/

# Set the PYTHONPATH environment variable to include /root/hedtools
ENV PYTHONPATH="/root/hedtools"
Expand All @@ -40,5 +40,5 @@ ENV HEDTOOLS_CONFIG_CLASS=config.ProductionConfig
# Expose the Gunicorn port (80 by default)
EXPOSE 80

# Run the Flask application with Gunicorn, binding to port 33004
CMD ["gunicorn", "-w", "4", "-b", "127.0.0.1:80", "runserver:app"]
# Run the Flask application with Gunicorn, binding to port 80
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:80", "hedtools.hedweb.runserver:app"]

0 comments on commit e56998b

Please sign in to comment.