forked from AHAAAAAAA/PokemonGo-Map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
39 lines (34 loc) · 1.05 KB
/
Dockerfile.dev
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
# Expected Usage:
#
# # Get the repo
# git clone git@github.com:AHAAAAAAA/PokemonGo-Map.git
#
# # Go into it
# cd PokemonGo-Map
#
# # Build the dev container
# docker build -f Dockerfile.dev -t pgodev .
#
# # Start the dev container in the background, mounting
# # this directory over it and port mapping 5000 through
# docker run -td -v `pwd`:/usr/src/app -p 5000:5000 --name pgd pgodev
#
# Now you can `exec` in as needed and run all the dependency
# install steps, start grunt, and even start an instance,
# like:
# docker exec -ti pgd npm install
# docker exec -ti pgd pip install -r requirements.txt --upgrade
# docker exec -ti pgd grunt
# or even
# docker exec -ti pgd sh
# > echo 'its a shell prompt, do whatever'
# Be small, thanks
FROM python:2.7-alpine
# Default location; also where we mount over
WORKDIR /usr/src/app
# The basic command
CMD [ "sh" ]
# basic packages we're using
RUN apk add --update ca-certificates build-base nodejs
# so that the npm-installed grunt can be called with just "grunt"
RUN npm install -g grunt-cli