forked from xc0ut/PGScout
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
32 lines (24 loc) · 977 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
# Basic docker image for PGScout
# It runs by adding "pgscout-url: http://PGScout:4242/iv" to your RM config
# Usage:
# docker build -t PGScout
# docker run -d --net container:RocketMap --name PGSCout -P PGScout
# Change "RocketMap" to the name of your RocketMap docker
# For newer versions of docker maybe you have to change --net to --network
FROM python:2.7-alpine
# Default port the webserver runs on
EXPOSE 4242
# Working directory for the application
WORKDIR /usr/src/app
# Set Entrypoint with hard-coded options
ENTRYPOINT ["python", "./pgscout.py"]
# Install required system packages
RUN apk add --no-cache ca-certificates
RUN apk add --no-cache bash git openssh
RUN apk add --no-cache linux-headers
COPY requirements.txt /usr/src/app/
RUN apk add --no-cache build-base \
&& pip install --no-cache-dir -r requirements.txt \
&& apk del build-base
# Copy everything to the working directory (Python files, templates, config) in one go.
COPY . /usr/src/app/