/
Dockerfile
61 lines (47 loc) · 1.27 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#SPDX-License-Identifier: MIT
FROM python:3.10-slim-bullseye
LABEL maintainer="outdoors@acm.org"
LABEL version="0.62.4"
ENV DEBIAN_FRONTEND=noninteractive
RUN set -x \
&& apt-get update \
&& apt-get -y install --no-install-recommends \
git \
bash \
curl \
gcc \
musl-dev \
python3-dev \
python3-distutils \
wget \
postgresql-client \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 5000
WORKDIR /augur
COPY ./README.md .
COPY ./alembic.ini .
COPY ./augur/ augur/
COPY ./metadata.py .
COPY ./setup.py .
COPY ./scripts/ scripts/
#COPY ./docker/backend/docker.config.json .
RUN python3 -m venv /opt/venv
RUN set -x \
&& /opt/venv/bin/pip install --upgrade pip
RUN set -x \
&& /opt/venv/bin/pip install wheel
RUN set -x \
&& /opt/venv/bin/pip install .
RUN set -x \
&& /opt/venv/bin/pip install --upgrade pip \
&& /opt/venv/bin/pip install wheel \
&& /opt/venv/bin/pip install .
RUN ./scripts/docker/install-workers-deps.sh
RUN ./scripts/docker/install-go.sh
# RUN ./scripts/install/workers.sh
RUN mkdir -p repos/ logs/ /augur/facade/
COPY ./docker/backend/entrypoint.sh /
COPY ./docker/backend/init.sh /
RUN chmod +x /entrypoint.sh /init.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD /init.sh