Skip to content
Snippets Groups Projects
Commit 84c47130 authored by Erik Hedenström's avatar Erik Hedenström
Browse files

Switched to codemate java base.

parent a49f755b
Branches
No related tags found
No related merge requests found
# Jetty
#
# REPOSITORY registry.codemate.se/jetty
# VERSION 1.0.0
# VERSION 1.1.0
FROM dockerfile/java
FROM registry.codemate.se/java:1.0.0
MAINTAINER Erik Hedenström <erik@codemate.se>
# Set the env variables to non-interactive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical
ENV DEBCONF_NOWARNINGS yes
# Upgrade packages
RUN \
apt-get -y update && \
apt-get -y upgrade
# Set Timezone
RUN \
echo "Europe/Stockholm" > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata
# Fix locale
RUN \
locale-gen en_US.UTF-8 && \
echo "LANG=\"en_US.UTF-8\"" > /etc/default/locale && \
echo "LANGUAGE=\"en_US.UTF8\"" >> /etc/default/locale && \
echo "LC_ALL=\"en_US.UTF8\"" >> /etc/default/locale
# Import self-signed cert as trusted CA
RUN \
mkdir -p /usr/share/ca-certificates/extra && \
openssl s_client -servername cert.codemate.se -connect codemate.se:443 </dev/null | sed -ne '/--BEGIN CERTIFICATE--/,/--END CERTIFICATE--/p' > /usr/share/ca-certificates/extra/codemate.crt && \
update-ca-certificates && \
keytool -import -noprompt -trustcacerts -keystore /usr/lib/jvm/java-7-oracle/jre/lib/security/cacerts -storepass changeit -noprompt -alias codemate-self-signed -file /usr/share/ca-certificates/extra/codemate.crt
# Install and configure Exim
RUN \
apt-get -y install exim4-daemon-light && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment