Skip to content

Commit

Permalink
Update Dockerfile to have fast regular build. (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
KingCSharp committed Nov 9, 2020
1 parent 7c85207 commit b59bf50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.6
WORKDIR /app

# Intall dependencies
COPY . /app/
COPY requirements.txt /app/

RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt update && \
Expand All @@ -14,6 +14,8 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir redis

COPY . /app/

RUN chmod +x /app/entrypoint.sh \
/app/wait-for-postgres.sh
ENTRYPOINT ["/app/entrypoint.sh"]

0 comments on commit b59bf50

Please sign in to comment.