forked from geekygreek7/PokeAlarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (23 loc) · 954 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
# Basic docker image for PokeAlarm
# It runs with the webhook -wh http://127.0.0.1:4000
# Usage:
# docker build -t pokealarm
# docker run -d --net container:RocketMap --name PokeAlarm -P pokealarm
# 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 4000
# Working directory for the application
WORKDIR /usr/src/app
# Set Entrypoint with hard-coded options
ENTRYPOINT ["python", "./start_pokealarm.py", "--host", "0.0.0.0"]
# Install required system packages
RUN apk add --no-cache ca-certificates
RUN apk add --no-cache bash git openssh
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/