Skip to content

Commit

Permalink
Add Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyar committed Apr 1, 2019
1 parent e366d4d commit 1d16fa0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM gcc AS build

COPY . /src

WORKDIR /src

RUN make LDFLAGS="-lm -static"

FROM scratch

COPY --from=build /src/test ./

WORKDIR /data

CMD ["/test"]
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ For a demo on how to learn hand written digits, get some training data:

make; ./test

If you're on `docker` it's:

docker build -t tinn .
docker run --user $(id -u) --rm -v ${PWD}:/data tinn

The training data consists of hand written digits written both slowly and quickly.
Each line in the data set corresponds to one handwritten digit. Each digit is 16x16 pixels in size
giving 256 inputs to the neural network.
Expand Down

0 comments on commit 1d16fa0

Please sign in to comment.