-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (32 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
41 lines (32 loc) · 1.04 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 node:8.4.0-alpine
ENV \
CONSUL_TEMPLATE_VERSION='0.19.4' \
CONTAINERPILOT_VERSION='3.6.0'
RUN \
apk --no-cache add curl libc6-compat nginx && \
mkdir -p /run/nginx && \
curl -fLsS https://releases.hashicorp.com/consul-template/$CONSUL_TEMPLATE_VERSION/consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.tgz | \
tar xz -C /usr/local/bin && \
curl -fLsS https://github.com/joyent/containerpilot/releases/download/$CONTAINERPILOT_VERSION/containerpilot-$CONTAINERPILOT_VERSION.tar.gz | \
tar xz -C /usr/local/bin
WORKDIR /code
COPY package.json ./
RUN npm install --no-save
COPY .eslintrc .stylelintrc ./
COPY bin/build bin/
COPY etc/cogs.js etc/
COPY src/client src/client
COPY src/shared src/shared
RUN MINIFY=1 bin/build
COPY bin bin
COPY etc etc
COPY src src
ENV \
BOB_URL='http://localhost' \
CONSUL_SERVICE_NAME='bob' \
CONSUL_SERVICE_TAGS='' \
CONSUL_URL='' \
CONTAINERPILOT='/code/etc/containerpilot.json5.gotmpl' \
POSTGRES_URL='pg://postgres:postgres@postgres/postgres'
EXPOSE 80
CMD ["containerpilot"]