forked from pleonard212/pix-plot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (40 loc) · 865 Bytes
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Specify base image
FROM ubuntu:16.04
# Specify author \ maintainer
MAINTAINER Douglas Duhaime <douglas.duhaime@gmail.com>
##
# Install Python
##
# Add repository that contains Python 3.6
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
# Install Python 3.6
RUN apt-get install -y build-essential \
python3.6 \
python3.6-dev \
python3-pip \
python3.6-venv
# Update pip
RUN python3.6 -m pip install pip --upgrade
RUN python3.6 -m pip install wheel
##
# Install ImageMagick
##
RUN apt-get install -y imagemagick
##
# Copy source files
##
ENV APP_PATH="pixplot"
RUN mkdir "$APP_PATH"
ADD . "$APP_PATH"
##
# Install PixPlot dependencies
##
RUN cd "$APP_PATH" && \
python3.6 -m pip install -r "utils/requirements.txt"
##
# Start server on 5000
##
EXPOSE 5000