forked from PoGO-VN/PoGO_VN_Map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (27 loc) · 1.15 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
# Basic docker image for RocketMap
# Usage:
# docker build -t rocketmap .
# docker run -d -P rocketmap -a ptc -u YOURUSERNAME -p YOURPASSWORD -l "Seattle, WA" -st 10 --gmaps-key CHECKTHEWIKI
FROM python:3.6-slim
# Default port the webserver runs on
EXPOSE 5000
# Working directory for the application
WORKDIR /usr/src/app
# Set Entrypoint with hard-coded options
ENTRYPOINT ["dumb-init", "-r", "15:2", "python", "./runserver.py", "--host", "0.0.0.0"]
COPY package.json requirements.txt Gruntfile.js static01.zip /usr/src/app/
COPY static /usr/src/app/static
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y --no-install-recommends \
build-essential imagemagick nodejs unzip \
&& pip install --no-cache-dir dumb-init \
&& pip install --no-cache-dir -r requirements.txt \
&& npm install \
&& npm run build \
&& rm -rf node_modules \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get purge -y --auto-remove build-essential nodejs unzip
# Copy everything to the working directory (Python files, templates, config) in one go.
COPY . /usr/src/app/