Add Docker

This commit is contained in:
Ilya Rogov 2019-04-01 23:43:25 +03:00 committed by Ilyar
parent e366d4d1fc
commit 1d16fa06c3
2 changed files with 20 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -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"]

View File

@ -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.