diff --git a/Dockerfile.release b/Dockerfile.release index 4ea1a69d..6845663a 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -1,15 +1,24 @@ -FROM phusion/baseimage:0.10.1 +FROM debian:stretch-slim + +# set locales +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y locales +RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ + dpkg-reconfigure --frontend=noninteractive locales && \ + update-locale LANG=en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 ENV LC_ALL en_US.UTF-8 # required packages -RUN apt-get update && apt-get upgrade -y && apt-get install -y \ +RUN echo 'deb http://deb.debian.org/debian jessie main' >> /etc/apt/sources.list +RUN apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends -y \ bash \ bash-completion \ curl \ dnsutils \ + libssl1.1 \ + libssl1.0.0 \ vim && \ apt-get clean diff --git a/README.md b/README.md index d821828a..89e32732 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ docker run -v `pwd`/priv:/opt/app/priv \ Building docker is really easy, just type: ```bash -MIX_ENV=prod mix do docker.build, docker.release +MIX_ENV=prod mix do deps.get, certs.dev, docker.build, docker.release ``` As a result of this command you get access to `mongoose_push:release` docker image. You may run it by typing: @@ -49,7 +49,8 @@ docker run -it --rm mongoose_push:release foreground ``` Docker image that you have just built, exposes the port `8443` for the REST API of -MongoosePush. Also there is a `VOLUME` for path */opt/app* where the whole MongoosePush release is stored. This volume will be handy for injecting `APNS` and REST API certificates. +MongoosePush. Also there is a `VOLUME` for path */opt/app* where the whole MongoosePush release is stored. This volume will be handy for injecting `APNS` and REST API certificates since by default the +docker image comes with fake, self-signed certificates. #### Configuring