Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rmb938 committed Dec 3, 2017
1 parent 7012dd4 commit 8c6a725
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ WORKDIR /usr/src/app
# Remove build time dependencies
# Install runtime dependencies
RUN apk --no-cache add --virtual build-deps \
build-base linux-headers pcre-dev postgresql-dev && \
pip install dumb-init psycopg2 && \
apk del build-deps && \
apk --no-cache add bash openssl pcre libpq ca-certificates
build-base bash linux-headers pcre-dev postgresql-dev libffi-dev && \
pip install dumb-init

# COPY tar.gz from build container
# Install it
# TODO: this should be replaced by a build arg to install the correct version from pypi
COPY --from=0 /usr/src/app/dist/. .
RUN bash -c "pip install *"

# Remove build time dependencies
# Install runtime dependencies
RUN apk del build-deps && \
apk --no-cache add openssl pcre libpq libffi ca-certificates

# add entrypoint
COPY docker-entrypoint.sh /bin/docker-entrypoint.sh

Expand Down

0 comments on commit 8c6a725

Please sign in to comment.