File tree Expand file tree Collapse file tree 5 files changed +33
-27
lines changed
Expand file tree Collapse file tree 5 files changed +33
-27
lines changed Original file line number Diff line number Diff line change 1+ FROM python:3.10-alpine
2+
3+ RUN apk update \
4+ && apk add --no-cache --virtual .build-deps git g++ postgresql-dev yaml-dev \
5+ && apk add --no-cache libpq
6+
7+ WORKDIR /var/src/lnt
8+
9+ COPY requirements.server.txt setup.py .
10+ # setup.py uses lnt.__version__ etc.
11+ COPY lnt/__init__.py lnt/__init__.py
12+ # we build the cperf extension during install
13+ COPY lnt/testing/profile lnt/testing/profile
14+
15+ RUN pip3 install -r requirements.server.txt \
16+ && apk --purge del .build-deps \
17+ && mkdir /var/log/lnt
18+
19+ COPY . .
20+ COPY docker/docker-entrypoint.sh docker/wait_db /usr/local/bin/
21+
22+ VOLUME /var/log
23+
24+ EXPOSE 8000
25+
26+ ENV DB_ENGINE= DB_HOST= DB_USER= DB_PWD= DB_BASE=
27+
28+ ENTRYPOINT docker-entrypoint.sh
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ services:
2121
2222 db :
2323 container_name : lnt-postgres
24- image : postgres:11 -alpine
24+ image : docker.io/ postgres:13 -alpine
2525 environment :
2626 - POSTGRES_PASSWORD=${DB_PWD}
27- - POSTGRES_USER=${DB_USER}
28- - POSTGRES_DB=${DB_BASE}
27+ - POSTGRES_USER=${DB_USER:-lntuser }
28+ - POSTGRES_DB=${DB_BASE:-lnt }
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22.
33psycopg2==2.9.10
44gunicorn==19.9.0
5- Jinja2==3.1.6
5+ Jinja2==2.11.3
66progressbar2
7- pyyaml==6.0
7+ pyyaml==5.1.2
You can’t perform that action at this time.
0 commit comments