Changes

Jump to navigation Jump to search
472 bytes added ,  19:45, 26 May 2017
no edit summary
Line 26: Line 26:  
Start/run with a different entry point:
 
Start/run with a different entry point:
 
  docker run -ti --entrypoint=sh user/test_image
 
  docker run -ti --entrypoint=sh user/test_image
 +
 +
== Create & Publish image ==
 +
mkdir myimage
 +
nano Dockerfile
 +
 +
Docekerfile
 +
<nowiki># Pull base image
 +
FROM resin/rpi-raspbian:wheezy
 +
MAINTAINER Dieter Reuter <dieter@hypriot.com>
 +
 +
# Install dependencies
 +
RUN apt-get update && apt-get install -y \
 +
    python \
 +
    python-dev \
 +
    python-pip \
 +
    python-virtualenv \
 +
    --no-install-recommends && \
 +
    rm -rf /var/lib/apt/lists/*
 +
 +
# Define working directory
 +
WORKDIR /data
 +
 +
# Define default command
 +
CMD ["bash"]</nowiki>

Navigation menu