Skip to content

Commit 84ba25b

Browse files
committed
Dockerfile to get things running and tests passing
1 parent 1bd9223 commit 84ba25b

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM python:3.8-slim-bullseye
2+
3+
LABEL maintainer "DataMade <info@datamade.us>"
4+
5+
RUN apt update && apt install -y gcc g++
6+
7+
RUN mkdir /app
8+
WORKDIR /app
9+
10+
# Copy the contents of the current host directory (i.e., our app code) into
11+
# the container.
12+
COPY . /app
13+
14+
RUN pip install -e .
15+
16+
RUN pip install -r requirements-dev.txt

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
app:
3+
platform: linux/amd64
4+
image: entity-embed
5+
container_name: entity-embed
6+
build: .

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ pytorch-metric-learning>=0.9.98,<1.0
88
regex>=2020.11.13
99
torch>=1.7.1,<1.9
1010
torchtext>=0.8,<0.10
11-
torchvision>=0.8.2<0.10
11+
torchvision>=0.8.2,<0.10
1212
tqdm>=4.53.0
13+
six

0 commit comments

Comments
 (0)