forked from kiwitcms/Kiwi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.buildroot
27 lines (19 loc) · 922 Bytes
/
Dockerfile.buildroot
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
FROM registry.access.redhat.com/ubi8/ubi-minimal
RUN microdnf --nodocs install python38-devel mariadb-connector-c-devel tar gzip make \
postgresql-devel libffi-devel gcc gettext npm unzip which rust cargo findutils && \
microdnf --nodocs update && \
microdnf clean all
ENV PATH /venv/bin:${PATH} \
VIRTUAL_ENV /venv
# Create a virtualenv for the application dependencies
RUN python3 -m venv /venv
# because we get some errors from other packages which need newer versions
RUN pip3 install --no-cache-dir --upgrade pip setuptools twine wheel
# build and install the application
COPY . /Kiwi/
WORKDIR /Kiwi
# install app dependencies so we can build the app later
RUN pip3 install --no-cache-dir -r requirements/mariadb.txt -r requirements/postgres.txt
RUN sed -i "s/tcms.settings.devel/tcms.settings.product/" manage.py
RUN ./tests/check-build
RUN pip3 install --no-cache-dir dist/kiwitcms-*.tar.gz