forked from b-ryan/powerline-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (27 loc) · 786 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
32
33
FROM aa8y/core:python2
MAINTAINER github.com/banga/powerline-shell
USER root
RUN apk add --no-cache --update \
bzr \
fossil \
git \
mercurial \
php5 \
subversion && \
rm -rf /var/cache/apk/*
# Cache the dev requirements. Directory is set in the base image.
WORKDIR $APP_DIR
COPY requirements-dev.txt .
RUN pip install -r requirements-dev.txt && \
rm -rf requirements-dev.txt
# 'USER' is set in the base image. It points to a non-root user called 'docker'.
USER $USER
RUN bzr whoami "$USERNAME <[email protected]>" && \
git config --global user.email "[email protected]" && \
git config --global user.name "$USERNAME"
COPY . ./
USER root
RUN ./setup.py install && \
chown -R $USER:$USER .
USER $USER
ENTRYPOINT ["/bin/bash"]