Skip to content

Commit

Permalink
Use redis 5 alpine
Browse files Browse the repository at this point in the history
Also lint all issues according [hadolint](https://github.com/hadolint/hadolint)
  • Loading branch information
zemanlx committed Dec 11, 2019
1 parent 342600d commit 41bf3ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions Dockerfile
@@ -1,13 +1,12 @@
FROM redis
FROM redis:5-alpine

RUN apt-get update --fix-missing && \
apt-get install -y stunnel python3-pip && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install honcho

ADD stunnel.conf /stunnel.conf
ADD Procfile /Procfile
RUN apk add --no-cache \
stunnel~=5.48 \
python3~=3.7 \
&& pip3 install honcho==1.0.*

WORKDIR /
COPY stunnel.conf Procfile /

ENV PYTHONUNBUFFERED=1
CMD ["honcho", "start"]
CMD ["honcho", "start"]
2 changes: 1 addition & 1 deletion Procfile
@@ -1,2 +1,2 @@
stunnel: stunnel4 /stunnel.conf
stunnel: stunnel /stunnel.conf
redis: /usr/local/bin/redis-server --port 6380 --bind 0.0.0.0

0 comments on commit 41bf3ff

Please sign in to comment.