-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 705 Bytes
/
Dockerfile
File metadata and controls
24 lines (16 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# syntax=docker/dockerfile:1
FROM cnstark/pytorch:1.12.1-py3.9.12-cuda11.6.2-ubuntu20.04
WORKDIR /app
COPY requirements.txt requirements.txt
ADD models/binaries/roberta-abbrev-identifier.tar.gz models
RUN pip3 install --upgrade pip \
&& pip3 install wheel \
&& pip3 install cupy-cuda116 \
&& pip3 install -r requirements.txt
RUN python3 -m spacy download en_core_web_md \
&& python3 -m spacy download en_core_web_trf
ENV full_iob_data_path=data/processed/new_PLOD_IOB_tagged.conll
ENV simple_output_path=data/out/new_rule_based_abbreviations.tsv
ENV ml_output_path=data/out/new_ml_based_abbreviations.tsv
ENV trained_model_output_path=models/new-roberta-abbrev-identifier
COPY . .