-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy pathContainerfile.dev
54 lines (42 loc) · 1.43 KB
/
Containerfile.dev
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
ARG FEDORA_VERSION
FROM registry.fedoraproject.org/fedora:${FEDORA_VERSION}
WORKDIR /app
# Package installation steps are separated so they
# can be cached individually on Dockerfile changes
RUN dnf upgrade --refresh -y
# Install helpful development packages (for tests and setup)
RUN dnf install -y git poetry python3-tox which python3.10 python3.11
# System dependencies for Anitya
RUN dnf install -y gcc graphviz libffi-devel python3-devel python3-psycopg2
# Install npm to manage javascript dependencies
RUN dnf install -y npm
# Dependencies for Anitya
RUN dnf install -y \
fedora-messaging \
python3-alembic \
python3-arrow \
python3-authlib \
python3-beautifulsoup4 \
python3-dateutil \
python3-defusedxml \
python3-flask-login \
python3-flask-wtf \
python3-jinja2 \
python3-ordered-set \
python3-toml \
python3-semver \
python3-sqlalchemy \
python3-sqlalchemy_schemadisplay \
python3-sseclient \
python3-straight-plugin \
python3-wtforms
RUN dnf autoremove -y && dnf clean all -y
# Copy over configuration files
RUN mkdir -p /etc/fedora-messaging
COPY .container/web/config.toml /etc/fedora-messaging
# Install javascript dependencies
COPY anitya/static /app/static
RUN pushd static && npm install && popd
# Set the poetry to use system packages
RUN poetry config virtualenvs.options.system-site-packages true
CMD ["sh", "-c", "poetry install && poetry run $START_COMMAND"]