Merge pull request #360 from Hainish/fix-docker-build

Fix Dockerfile
This commit is contained in:
James 'J.C.' Jones 2015-06-15 16:49:15 -05:00
commit 05596e1560
1 changed files with 14 additions and 4 deletions

View File

@ -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"]