aboutsummaryrefslogtreecommitdiff
path: root/docker/Dockerfile
blob: e31cb36601926bbda54b0b781a65653a3e236e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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