Skip to content

Commit

Permalink
fix: binary parser compiler not running
Browse files Browse the repository at this point in the history
  • Loading branch information
harivyasi committed Mar 6, 2025
1 parent 3583b92 commit 2061954
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ARG BUILD_CONVERTER=v1.3.0

# install system packages
RUN apt-get update && \
apt-get install -y --no-install-recommends --autoremove --fix-missing python3.12 python3-pip python3-venv libmagic1 curl git
apt-get install -y --no-install-recommends --autoremove --fix-missing python3.12 python3-pip python3-dev python3-venv build-essential libmagic1 curl git

WORKDIR /srv
RUN git clone --single-branch --branch dev-deploy-1 --depth=1 https://github.com/ComPlat/chemotion-converter-app chemotion
Expand All @@ -45,7 +45,8 @@ ADD https://github.com/ComPlat/chemotion-converter-app/archive/refs/tags/${BUILD

RUN tar -xzf /tmp/code.tar.gz --strip-components=1 -C /srv/chemotion && rm /tmp/code.tar.gz && \
python3 -m venv env && . env/bin/activate && \
pip install --no-cache-dir -r /srv/chemotion/requirements/common.txt
pip install git+https://github.com/ComPlat/BinaryParser.git && \
pip install --no-cache-dir -r /srv/chemotion/requirements/default.txt

RUN test -f "/srv/chemotion/.env.prod" && mv "/srv/chemotion/.env.prod" "/srv/chemotion/.env" && mkdir -p /var/log/chemotion-converter/ && chmod a+wrx /var/log/chemotion-converter/

Expand All @@ -70,6 +71,7 @@ EXPOSE 4000

WORKDIR /srv/chemotion
CMD ["gunicorn", "--bind", "0.0.0.0:4000", "converter_app.app:create_app()", "--preload"]
# gunicorn --bind 0.0.0.0:4000 "converter_app.app:create_app()" --preload

HEALTHCHECK --interval=5s --timeout=3s --start-period=5s --retries=3 \
CMD curl --fail http://localhost:4000/
Expand Down

0 comments on commit 2061954

Please sign in to comment.