Deploying and Using Cryptonic

cryptonic is developed as a Dockerized application. In Docker terms, that means that the application can be built as a Docker image and then deployed as a Docker container in either a development or a production environment.

Docker uses files called Dockerfile for describing the rules for how to build an image and what happens when that image is deployed as a container. Cryptonic's Dockerfile is available in the following code:

    FROM python:3.6    COPY . /cryptonic    WORKDIR "/cryptonic"    RUN pip install -r requirements.txt    EXPOSE 5000    CMD ["python", "run.py"]
Snippet 6: Docker file for the cryptonic image

A Docker file can be used to build a Docker image with the following command:

     $ docker build --tag cryptonic:latest ...

Get Applied Deep Learning with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.