Skip to content

Commit

Permalink
More fixes to pull right dependecies
Browse files Browse the repository at this point in the history
  • Loading branch information
suneeta-mall authored Jun 13, 2024
1 parent 58e2f3b commit d381579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ COPY scripts/data/get_chemprot.sh /tmp/get_chemprot.sh
COPY scripts/data/chemprot /dygiepp/scripts/data/chemprot
ENV PYTHONPATH="${PYTHONPATH}:/dygiepp"
SHELL ["conda", "run", "-n", "dygiepp", "/bin/bash", "-c"]
RUN pip install scispacy https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.2.5/en_core_sci_sm-0.2.5.tar.gz
RUN pip install scispacy==0.2.3 https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.2.5/en_core_sci_sm-0.2.5.tar.gz
RUN cd /dygiepp && bash /tmp/get_chemprot.sh

# Pretrained-models-all-DYGIEPP: Download pre-trained models for all DYGIEPP tasks.
Expand All @@ -69,6 +69,7 @@ RUN rm -rf /tmp /dygiepp/{scripts,dygie}

# Required-base: on run, ensure conda env is activated and /dygiepp is workdir.
WORKDIR /dygiepp/
COPY dygie /dygiepp/dygie/
SHELL ["/bin/bash", "-c"]
RUN conda init bash
RUN echo "conda activate dygiepp" >> ~/.bashrc
Expand Down

0 comments on commit d381579

Please sign in to comment.