File size: 611 Bytes
070d178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# start with a base image
FROM ubuntu:16.04

# install dependencies
RUN apt-get update
RUN apt-get install -y python python-pip
RUN apt-get install -y libglib2.0-0

# Copy the current directory contents into the container
COPY . .

# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt

# Make port 8000 available outside this container
EXPOSE 8000

# Set the working directory to /app
WORKDIR app

# run script to generate image histogram from DB
# Run app.py when the container launches
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]