commit
05596e1560
18
Dockerfile
18
Dockerfile
|
@ -1,19 +1,29 @@
|
||||||
FROM golang:1.4.2
|
FROM golang:1.4.2
|
||||||
|
|
||||||
MAINTAINER J.C. Jones "jjones@letsencrypt.org"
|
MAINTAINER J.C. Jones "jjones@letsencrypt.org"
|
||||||
|
MAINTAINER William Budington "bill@eff.org"
|
||||||
|
|
||||||
|
# Install dependencies packages
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
libltdl-dev \
|
||||||
|
rsyslog && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/* \
|
||||||
|
/tmp/* \
|
||||||
|
/var/tmp/*
|
||||||
|
|
||||||
# Boulder exposes its web application at port TCP 4000
|
# Boulder exposes its web application at port TCP 4000
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
|
||||||
# Assume the configuration is in /etc/boulder
|
# Assume the configuration is in /etc/boulder
|
||||||
ENV BOULDER_CONFIG /go/src/github.com/letsencrypt/boulder/test/example-config.json
|
ENV BOULDER_CONFIG /go/src/github.com/letsencrypt/boulder/test/boulder-config.json
|
||||||
|
|
||||||
# Copy in the Boulder sources
|
# Copy in the Boulder sources
|
||||||
RUN mkdir -p /go/src/github.com/letsencrypt/boulder
|
|
||||||
COPY . /go/src/github.com/letsencrypt/boulder
|
COPY . /go/src/github.com/letsencrypt/boulder
|
||||||
|
|
||||||
# Build Boulder
|
# Build Boulder
|
||||||
RUN go install \
|
RUN go install -tags pkcs11 \
|
||||||
github.com/letsencrypt/boulder/cmd/activity-monitor \
|
github.com/letsencrypt/boulder/cmd/activity-monitor \
|
||||||
github.com/letsencrypt/boulder/cmd/boulder \
|
github.com/letsencrypt/boulder/cmd/boulder \
|
||||||
github.com/letsencrypt/boulder/cmd/boulder-ca \
|
github.com/letsencrypt/boulder/cmd/boulder-ca \
|
||||||
|
@ -22,4 +32,4 @@ RUN go install \
|
||||||
github.com/letsencrypt/boulder/cmd/boulder-va \
|
github.com/letsencrypt/boulder/cmd/boulder-va \
|
||||||
github.com/letsencrypt/boulder/cmd/boulder-wfe
|
github.com/letsencrypt/boulder/cmd/boulder-wfe
|
||||||
|
|
||||||
CMD ["/go/bin/boulder"]
|
CMD ["bash", "-c", "rsyslogd && /go/bin/boulder"]
|
||||||
|
|
Loading…
Reference in New Issue