-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.develop.focal
42 lines (33 loc) · 1.01 KB
/
Dockerfile.develop.focal
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 ubuntu:focal
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3-asyncpg \
python3-cachetools \
python3-idna \
python3-jinja2 \
python3-pip \
python3-psycopg2 \
python3-requests \
python3-sniffio \
python3-typing-extensions \
python3-uvicorn \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
git \
postgresql-12 \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/eradman/ephemeralpg.git \
&& cd ephemeralpg \
&& make && make install \
&& cd .. \
&& rm -rf ephemeralpg/
ENV PATH="/usr/lib/postgresql/12/bin:${PATH}"
# take out coverage report from source directory
ENV COVERAGE_FILE="/tmp/qllr.coverage"
COPY --chown=www-data . /opt/qllr
WORKDIR /opt/qllr
RUN python3 -m pip install -r requirements.txt
RUN python3 -m pip install -r requirements_dev.txt
USER www-data
CMD ["./scripts/test"]