This repository was archived by the owner on Jun 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (33 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
41 lines (33 loc) · 1.22 KB
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
FROM heroku/cedar:14
MAINTAINER Fabio Rehm "fgrehm@gmail.com"
ENV HOME=/home/devstep \
DEVSTEP_PATH=/opt/devstep \
DEVSTEP_BIN=/opt/devstep/bin \
DEVSTEP_CONF=/etc/devstep \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
LC_CTYPE=en_US.UTF-8
#####################################################################
# Copy over our build scripts
ADD image/ /tmp/build
#####################################################################
# Install required packages and do some additional setup
RUN /tmp/build/prepare.sh
#####################################################################
# Devstep goodies (ADDed at the end to increase image "cacheability")
ADD stack $DEVSTEP_PATH
RUN for script in $DEVSTEP_PATH/buildpacks/*/bin/install-dependencies; do \
$script; \
done
#####################################################################
# Fix permissions and set up init
RUN /tmp/build/fix-permissions.sh
#####################################################################
# Setup default user
USER developer
ENV USER developer
#####################################################################
# Use our init
ENTRYPOINT ["/opt/devstep/bin/entrypoint"]
# Start a bash session by default
CMD ["/bin/bash"]