Skip to content

Commit

Permalink
Merge pull request #68 from esl/docker_stretch_slim
Browse files Browse the repository at this point in the history
Use debian:stretch-slim as release docker base
  • Loading branch information
michalwski authored May 23, 2018
2 parents 9ed7d9d + 4447287 commit 91e221d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 11 additions & 2 deletions Dockerfile.release
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit 91e221d

Please sign in to comment.