FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
RocketMap/Dockerfile at develop · RocketMap/RocketMap · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
RocketMap
/
RocketMap
Public
Notifications
You must be signed in to change notification settings
Fork
1.4k
Star
2.8k
Code
Issues
34
Pull requests
31
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
RocketMap
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (31 loc) · 1.38 KB
Breadcrumbs
RocketMap
/
Dockerfile
Copy path
File metadata and controls
41 lines (31 loc) · 1.38 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
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:2.7
#
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"
]
#
Set default options when container is run without any command line arguments
CMD
[
"-h"
]
COPY
requirements.txt /usr/src/app/
RUN
apt-get update && apt-get install -y --no-install-recommends build-essential \
&& pip install --no-cache-dir dumb-init \
&& pip install --no-cache-dir -r requirements.txt \
&& apt-get purge -y --auto-remove build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY
package.json Gruntfile.js static01.zip /usr/src/app/
COPY
static /usr/src/app/static
RUN
apt-get update && apt-get install -y --no-install-recommends build-essential curl unzip \
&& curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install \
&& npm run build \
&& rm -rf node_modules \
&& apt-get purge -y --auto-remove build-essential nodejs \
&& rm -rf /var/lib/apt/lists/*
#
Copy everything to the working directory (Python files, templates, config) in one go.
COPY
. /usr/src/app/
Back
|
FazBrowse Home
|
New Git URL