Skip to content

Commit

Permalink
update to python 3.10 and scispacy 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dkapitan committed Sep 7, 2022
1 parent fb14d63 commit 7bc30e4
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/*.whl
.DS_Store
42 changes: 42 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM python:3.10-slim-buster

# Temporary for local testing
#
# Do comment this out when pushing. it will crash the deployment
#
#ARG aws_access_key_id
#ENV AWS_ACCESS_KEY_ID $aws_access_key_id
#ARG aws_secret_access_key
#ENV AWS_SECRET_ACCESS_KEY $aws_secret_access_key
ENV PRODIGY_LOGGING=verbose

RUN pip install --upgrade pip

# install base packages
RUN apt-get clean \
&& apt-get update --fix-missing \
&& apt-get install -y \
git \
curl \
gcc \
g++ \
build-essential \
wget \
awscli \
libpq-dev

WORKDIR /work

# copy over shell files and make them executable
COPY . .
RUN chmod +x *

# install python dependencies
RUN pip install -r requirements.in

# add the code as the final step so that when we modify the code
# we don't bust the cached layers holding the dependencies and
# system packages.

RUN chmod +rwx *
CMD [ "/bin/bash" ]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# MyNLP Docker

Dockercontainer based on:
- Python 3.10.6
- [scispacy](https://github.com/allenai/scispacy) 0.5.1
- [prodigy](https://prodi.gy/). **Note:** Wheels are required in `/prodigy-1.11.8` in the root of this repository

## Build container locally

```
docker build -t mynlp-p310:latest .
```

## Build container for AWS

TODO
3 changes: 3 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
scispacy
--find-links ./prodigy-1.11.8 prodigy
https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.0/en_core_sci_md-0.5.0.tar.gz

0 comments on commit 7bc30e4

Please sign in to comment.