forked from RocketMap/RocketMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (31 loc) · 1.17 KB
/
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
# Basic docker image for PokemonGo-Map
# Usage:
# docker build -t pokemongo-map .
# docker run -d -P pokemongo-map -a ptc -u YOURUSERNAME -p YOURPASSWORD -l "Seattle, WA" -st 10 --gmaps-key CHECKTHEWIKI
FROM python:2.7-alpine
# Default port the webserver runs on
EXPOSE 5000
# Working directory for the application
WORKDIR /usr/src/app
# Set Entrypoint with hard-coded options
ENTRYPOINT ["python", "./runserver.py", "--host", "0.0.0.0"]
# Set default options when container is run without any command line arguments
CMD ["-h"]
# 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 package.json Gruntfile.js /usr/src/app/
COPY static /usr/src/app/static
RUN apk add --no-cache build-base nodejs \
&& npm install -g grunt-cli \
&& npm install \
&& npm run-script build \
&& npm uninstall -g grunt-cli \
&& rm -rf node_modules \
&& apk del build-base nodejs
# Copy everything to the working directory (Python files, templates, config) in one go.
COPY . /usr/src/app/