Skip to content

Commit

Permalink
Merge pull request #6 from br0kej/docker-container
Browse files Browse the repository at this point in the history
Adding a CPU Capable Docker Container
  • Loading branch information
ctyler-dstl authored Sep 9, 2022
2 parents 41511a7 + 5d60ce0 commit 6457037
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
venv/
.pytest_cache
*.egg-info
7 changes: 7 additions & 0 deletions Dockerfile.cpu
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:3.8.13-slim

COPY ./ /root/code
RUN apt-get update && apt-get install gcc -y
RUN cd /root/code && python3 -m pip install --upgrade pip && pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html && python3 -m pip install -e .[dev]

CMD /bin/bash

0 comments on commit 6457037

Please sign in to comment.