-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.phusion
32 lines (26 loc) · 936 Bytes
/
Dockerfile.phusion
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
# Use phusion/baseimage as base image. To make your builds
# reproducible, make sure you lock down to a specific version, not
# to `latest`! See
# https://github.com/phusion/baseimage-docker/blob/master/Changelog.md
# for a list of version numbers.
FROM phusion/baseimage:0.11
LABEL maintainer="Gardiner Allen <[email protected]>"
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# install package
RUN apt-get update -y
RUN apt-get install -y jq curl wget
# add all docker files
ADD ./docker_files /
# service version configured at build time
ARG VERSION
ENV VERSION=${VERSION}
ADD ./release /opt/release
RUN chmod +x /opt/release/contactqr-${VERSION}-linux-amd64
RUN chmod +x /etc/service/contactqr/run
# service port default configured at build time, can be overriden wuth ENV value
ARG PORT
ENV PORT=${PORT}
EXPOSE ${PORT}
# Clean up APT when done
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*