-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (30 loc) · 910 Bytes
/
Dockerfile
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
35
36
37
38
39
40
41
42
FROM python:3.8-slim
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
ENV PIP_NO_CACHE_DIR=off
ENV PYTHONDONTWRITEBYTECODE=true
ENV PYTHONFAULTHANDLER=true
ENV PYTHONUNBUFFERED=true
WORKDIR /code
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gcc \
libsasl2-dev \
libldap2-dev \
libssl-dev \
graphviz \
libgraphviz-dev \
libpq-dev \
make \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml poetry.lock /code/
RUN pip install --no-compile --upgrade pip \
&& pip install --no-compile poetry \
&& poetry config virtualenvs.create false \
&& poetry install --no-dev --no-interaction --no-ansi
COPY ./exchange /code/exchange
COPY Makefile /code/
RUN pip install --no-compile poetry \
&& poetry config virtualenvs.create false \
&& poetry install --no-dev --no-interaction --no-ansi
RUN make currencies
CMD ["make", "up"]