forked from kiwitcms/Kiwi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.buildroot
32 lines (22 loc) · 1.05 KB
/
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
28
29
30
31
32
FROM registry.access.redhat.com/ubi9-minimal
RUN microdnf -y --nodocs install python3-devel mariadb-connector-c-devel tar gzip make \
postgresql-devel libffi-devel gcc gettext npm unzip which rust cargo findutils \
libjpeg-turbo-devel && \
microdnf -y --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
# compile tcms/static/js/bundle.js explicitly
RUN pushd tcms/ && npm install --dev && ./node_modules/.bin/webpack && popd
RUN ./tests/check-build
RUN pip3 install --no-cache-dir dist/kiwitcms-*.tar.gz