-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
61 lines (48 loc) · 1.31 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
ARG BOILERPLATE_PARENT_IMAGE="ubuntu"
ARG BOILERPLATE_PARENT_TAG="latest"
FROM $BOILERPLATE_PARENT_IMAGE:$BOILERPLATE_PARENT_TAG
MAINTAINER Trevor Joynson "<[email protected]>"
ENV DEBIAN_FRONTEND=noninteractive \
DEBCONF_NONINTERACTIVE_SEEN=true \
LANG=C.UTF-8 \
TZ=Etc/UTC \
\
IMAGE_ROOT=/image \
\
APP_ROOT=/app \
APP_USER=app \
APP_ENV=develop
ENV LANGUAGE=$LANG \
\
IMAGE_PATH=$IMAGE_ROOT/sbin:$IMAGE_ROOT/bin \
BUSYBOX_PATH=$IMAGE_ROOT/busybox-bin \
\
APP_PATH=$APP_ROOT/image/sbin:$APP_ROOT/image/bin \
\
ENTRYPOINT_PATH=$APP_ROOT/image/entrypoint.d:$APP_ROOT/entrypoint.d:$IMAGE_ROOT/entrypoint.d
ENV PATH=$APP_PATH:$IMAGE_PATH:$PATH:$BUSYBOX_PATH
WORKDIR $IMAGE_ROOT
ARG BOILERPLATE_ABI="latest"
RUN set -exv \
&& echo "Installing common packages" \
&& apt-get update -q \
&& apt-get install -qy --no-install-recommends \
# Deps: wait-for-linked-services
netcat \
\
# Common
curl \
ca-certificates \
locales \
tzdata \
#ssl-cert \
busybox \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache /home/*/.cache
ADD image ./
RUN build-parts build.d
ENTRYPOINT ["entrypoint"]
CMD ["bash"]
# >> Let them do this one, honey.
#USER $APP_USER
WORKDIR $APP_ROOT