mirror of
https://github.com/corda/corda.git
synced 2025-02-07 19:40:25 +00:00
improve Dockerfile with suggestions from code review
This commit is contained in:
parent
b2d242731a
commit
08826580c5
20
Dockerfile
20
Dockerfile
@ -2,14 +2,24 @@ FROM debian:jessie
|
|||||||
MAINTAINER Joshua Warner, joshuawarner32@gmail.com
|
MAINTAINER Joshua Warner, joshuawarner32@gmail.com
|
||||||
|
|
||||||
# Install base dependencies and build tools, general debugging tools
|
# Install base dependencies and build tools, general debugging tools
|
||||||
RUN apt-get update && apt-get install -y build-essential g++-4.8 zlib1g-dev openjdk-7-jdk locales --no-install-recommends && apt-get clean all
|
RUN apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
g++-4.8 \
|
||||||
|
zlib1g-dev \
|
||||||
|
openjdk-7-jdk \
|
||||||
|
locales \
|
||||||
|
--no-install-recommends && \
|
||||||
|
apt-get clean all
|
||||||
|
|
||||||
# Fix utf-8 default locale - we'd otherwise have trouble with the Strings and Misc tests
|
# Fix utf-8 default locale - we'd otherwise have trouble with the Strings and Misc tests
|
||||||
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
|
RUN dpkg-reconfigure locales && \
|
||||||
ENV LANG en_US.UTF-8
|
locale-gen C.UTF-8 && \
|
||||||
ENV LC_ALL en_US.UTF-8
|
/usr/sbin/update-locale LANG=C.UTF-8
|
||||||
|
|
||||||
# Set JAVA_HOME for avian's benefi
|
ENV LC_ALL C.UTF-8
|
||||||
|
|
||||||
|
# Set JAVA_HOME for avian's benefit
|
||||||
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
|
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
|
||||||
|
|
||||||
# Avian build location
|
# Avian build location
|
||||||
|
Loading…
x
Reference in New Issue
Block a user