aboutsummaryrefslogtreecommitdiff
path: root/build/Dockerfile
blob: adfade343a37e37e8e94c42fef194ef44e3c9993 (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
32
33
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