aboutsummaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2018-03-23 20:26:46 -0600
committerCody Hiar <codyfh@gmail.com>2018-03-23 20:26:46 -0600
commit318c213573ccc1e85e48a60002e694716388be64 (patch)
tree7b22911569f2d61849155b9b59b9219fccc07f09 /docker/Dockerfile
parentaa6e200bc7844aa2b7b88a451a9e95be4f2cebb0 (diff)
Move docker from build dir to docker
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..e31cb36
--- /dev/null
+++ b/docker/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