-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 957 Bytes
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 957 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
33
34
35
36
37
38
39
40
FROM alpine:3.2
# install common packages
RUN echo "http://mirrors.ustc.edu.cn/alpine/v3.2/main/" > /etc/apk/repositories
RUN apk add --update-cache curl bash sudo && rm -rf /var/cache/apk/*
RUN curl -sSL -o /usr/local/bin/etcdctl http://sinacloud.net/hehe/etcd/etcdctl-v0.4.9 \
&& chmod +x /usr/local/bin/etcdctl
# install confd
RUN curl -sSL -o /usr/local/bin/confd http://sinacloud.net/hehe/confd/confd-0.11.0-linux-amd64 \
&& chmod +x /usr/local/bin/confd
# ADD build.sh /tmp/build.sh
# RUN DOCKER_BUILD=true /tmp/build.sh
RUN apk add --update-cache \
build-base \
curl \
file \
gcc \
git \
libffi-dev \
libxml2-dev \
libxslt-dev \
openssl-dev \
postgresql \
postgresql-client
RUN mkdir -p /etc/postgresql/main /var/lib/postgresql
RUN chown -R root:postgres /etc/postgresql/main /var/lib/postgresql
# define the execution environment
WORKDIR /app
CMD ["/app/bin/boot"]
EXPOSE 5432
ADD . /app
ENV DEIS_RELEASE 1.13.0-dev