forked from uktrade/lite-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.e2e
34 lines (26 loc) · 1.01 KB
/
Dockerfile.e2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:22.04
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 curl wget \
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 git imagemagick poppler-utils openssl
# 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 curl https://pyenv.run | bash
ENV HOME /root
ENV PYENV_ROOT $HOME/.pyenv
ENV PATH $PYENV_ROOT/bin:$PATH
RUN pyenv install -v 3.8.18
RUN pyenv global 3.8.18
RUN pip3 install pipenv
ADD Pipfile* /app/
RUN pipenv install --dev --deploy
RUN pip3 install endesive==1.5.9
ADD . /app
CMD ./start-e2e.sh