rkcosmos / deepcut

A Thai word tokenization library using Deep Neural Network
MIT License
420 stars 96 forks source link

add Dockerfile #15

Closed chanwit closed 7 years ago

chanwit commented 7 years ago

Messing with the installation of two different versions of Python as well as Tensorflow is killing my machine.

This PR adds a Dockerfile to help beginners (like me) getting started with deepcut. It's based on an Alpine-3.6 with glibc image. Version 1.2 of Tensorflow is installed. (I grabbed the original Dockerfile a while ago from the Docker hub and cannot remember who's the original author.)

To build this image:

  1. Install Docker on your machine: $ curl -sSL https://get.docker.com | sudo sh.
  2. $ docker build -t deepcut .
  3. Go watching a 2-hr movie.

To run this image: $ docker run --rm -it deepcut. It will open a shell for us to play with deepcut.

It's the Docker's tradition to submit a PR with a cute animal. So do I. image

rkcosmos commented 7 years ago

This should be useful, thanks!

rkcosmos commented 7 years ago

I got an error when tried to run

curl -sSL https://get.docker.com | sudo sh

screen shot 2560-07-27 at 9 43 33 am
chanwit commented 7 years ago

My bad! What is your OS? The script is known to work with many Linux distros.

If not, please check the link shown in the error message.

On Thu, Jul 27, 2017, 09:46 Rakpong Kittinaradorn notifications@github.com wrote:

I got an error when tried to run

curl -sSL https://get.docker.com | sudo sh

[image: screen shot 2560-07-27 at 9 43 33 am] https://user-images.githubusercontent.com/12238328/28652176-68b5c222-72b0-11e7-92d4-6ece7bc8d263.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rkcosmos/deepcut/pull/15#issuecomment-318242853, or mute the thread https://github.com/notifications/unsubscribe-auth/AAApql6ylPk_In2An9ewH7n0wrgyXoUfks5sR_oGgaJpZM4OkNvS .