forked from sfc-gh-eraigosa/docker-herokucli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 814 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 814 Bytes
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
ARG BASE_IMAGE=node:8.12.0-alpine
FROM $BASE_IMAGE
ARG TAG=1
ARG DOCKER_IMAGE=herokucli
ENV TAG=${TAG}
ENV DOCKER_IMAGE=${DOCKER_IMAGE}
RUN echo "Working on ${DOCKER_IMAGE}:${TAG}"
RUN echo "Installing git and herokucli cli" \
&& mkdir /workspace \
&& apk add --no-cache git \
&& apk add --no-cache bash \
&& apk add --no-cache build-base \
&& npm install -g heroku \
&& apk del build-base
RUN echo "Setting up travis user" \
&& addgroup -S heroku -g 19998 \
&& adduser -S -g heroku -u 1998 heroku
COPY entrypoint.sh /bin/entrypoint
COPY profile.sh /etc/profile.d/profile.sh
RUN chmod +x /bin/entrypoint
RUN /bin/entrypoint test
WORKDIR /workspace
USER heroku
ENTRYPOINT ["/bin/entrypoint"]