diff options
author | Cody Hiar <codyfh@gmail.com> | 2018-03-19 21:30:32 -0600 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2018-03-19 21:30:32 -0600 |
commit | 3f5efcb91afc2e6d013800132b92e4a6c297f662 (patch) | |
tree | 3de0b3c6804ec51d5784d788b8df450eae208f1a /build |
Initial commit of working files
Diffstat (limited to 'build')
-rw-r--r-- | build/Dockerfile | 34 | ||||
-rw-r--r-- | build/entry.sh | 3 | ||||
-rw-r--r-- | build/requirements.txt | 2 |
3 files changed, 39 insertions, 0 deletions
diff --git a/build/Dockerfile b/build/Dockerfile new file mode 100644 index 0000000..adfade3 --- /dev/null +++ b/build/Dockerfile @@ -0,0 +1,34 @@ +FROM ubuntu:16.04 +MAINTAINER Cody Hiar <codyfh@gmail.com> + +# Set a term for terminal inside the container, can't clear without it +ENV TERM screen-256color +ENV DEBIAN_FRONTEND noninteractive + + +# Update and install +RUN apt-get update && apt-get install -y \ + wget \ + python3-dev \ + python3-pip \ + vim \ + locales + +# Add the project requirements +ADD requirements.txt /opt/requirements.txt + +# Install the requirements +RUN /bin/bash -c 'cd /opt && pip3 install -r requirements.txt' + +# Generally a good idea to have these, extensions sometimes need them +RUN locale-gen en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 + +# The code should be symlinked to this directory +WORKDIR /app + +# Create 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; diff --git a/build/requirements.txt b/build/requirements.txt new file mode 100644 index 0000000..56ea79c --- /dev/null +++ b/build/requirements.txt @@ -0,0 +1,2 @@ +scrapy==1.5.0 +ipython==6.0.0 |