Skip to content

Commit

Permalink
Merge pull request #964 from uktrade/chore/add-dockerize-to-docker-image
Browse files Browse the repository at this point in the history
Add dockerize to api image
  • Loading branch information
PippoRaimondi authored Apr 5, 2022
2 parents 8c34a43 + c8ab82e commit 1c943a0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile.e2e
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
FROM python:3.7-slim

ARG DOCKERIZE_VERSION=v0.6.1

WORKDIR /app

# Install python dependencies
RUN apt-get update --fix-missing
RUN apt-get install -y libpq-dev gcc \
build-essential python3-dev python3-pip python3-setuptools python3-wheel \
python3-cffi libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0 \
libffi-dev shared-mime-info swig

RUN pip3 install pipenv
# Install dockerize
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz

# Install app dependencies
RUN pip3 install pipenv
ADD Pipfile* /app/

RUN pipenv install --dev --system --deploy
RUN pip3 install endesive==1.5.9

Expand Down

0 comments on commit 1c943a0

Please sign in to comment.