diff options
author | Bryan Hyshka <bryan@hyshka.com> | 2018-03-05 11:04:01 -0700 |
---|---|---|
committer | Bryan Hyshka <bryan@hyshka.com> | 2018-03-05 11:04:01 -0700 |
commit | f416ab2f81f2f02f9a55274e63333b6964ce9da1 (patch) | |
tree | 63dc83394ca8ec8e611e792a8113955c4b434ee1 /build | |
parent | 70366911a9b5ddedbfe8b02b6447f2738f306239 (diff) |
add basic dockerfile setup
Diffstat (limited to 'build')
-rw-r--r-- | build/Dockerfile | 31 | ||||
-rw-r--r-- | build/entry.sh | 3 |
2 files changed, 34 insertions, 0 deletions
diff --git a/build/Dockerfile b/build/Dockerfile new file mode 100644 index 0000000..e31cb36 --- /dev/null +++ b/build/Dockerfile @@ -0,0 +1,31 @@ +FROM ubuntu:16.04 +MAINTAINER Cody Hiar <codyfh@gmail.com> + +# Needed for better experience in container terminal +ENV TERM=xterm-256color + +# Update and install +RUN apt-get update && apt-get install -y \ + git \ + wget \ + # for cal utility + bsdmainutils \ + # Python + python3-dev \ + python3-pip + +# Add the project requirements +ADD requirements.txt /opt/requirements.txt + +# # Install the requirements, remove 3 for wagtail +RUN /bin/bash -c 'cd /opt \ + && pip3 install -r requirements.txt' + +ADD config.json /opt/config.json + +# change to /opt for the working directory, you should mount the local dir volume here +WORKDIR /opt + +# Add the entry script +ADD entry.sh /opt/ +RUN chmod 755 /opt/entry.sh diff --git a/build/entry.sh b/build/entry.sh new file mode 100644 index 0000000..09a943f --- /dev/null +++ b/build/entry.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +while true; do echo hi; sleep 1; done; |