-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
38 lines (31 loc) · 825 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
FROM ubuntu:16.04
MAINTAINER Ash Wilson
#########
# Modified by Mark A. Aklian on 9/26/2016
#########
#########
# Install Python, pip, Flask, and the CloudPassage SDK
#########
RUN apt-get update && \
apt-get install -y \
apt-transport-https \
curl \
python \
python-pip
RUN pip install \
flask \
cloudpassage \
pytest
#########
# Set up the CloudPassage repo, install the agent
#########
RUN echo 'deb https://production.packages.cloudpassage.com/debian debian main' | tee /etc/apt/sources.list.d/cloudpassage.list > /dev/null
RUN curl https://production.packages.cloudpassage.com/cloudpassage.packages.key | apt-key add -
RUN apt-get update && \
apt-get install -y \
cphalo
COPY ./ /app/
WORKDIR /app
ENV FLASK_APP=runner.py
EXPOSE 5000
CMD python -m flask run --host=0.0.0.0