-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-base
30 lines (23 loc) · 1.2 KB
/
Dockerfile-base
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
FROM registry.fedoraproject.org/fedora:38
ARG version=latest
# For mod_wsgi to store socket file.
# https://modwsgi.readthedocs.io/en/master/configuration-directives/WSGISocketPrefix.html#wsgisocketprefix
ARG wsgi_dir=/var/run/wsgi
ARG extra_requires="async,mysql,pgsql,bugzilla,socialauth"
LABEL \
org.opencontainers.image.title=Nitrate \
org.opencontainers.image.licenses=GPL-2.0-or-later \
org.opencontainers.image.version="${version}" \
org.opencontainers.image.authors="Nitrate Team" \
org.opencontainers.image.vendor="Nitrate Team" \
org.opencontainers.image.description="Nitrate is a new test plan, test run and test case management system, which is written in Python and Django (the Python web framework). Base image includes installed Nitrate." \
org.opencontainers.image.documentation="https://nitrate.readthedocs.io/" \
org.opencontainers.image.source="https://github.com/Nitrate/Nitrate"
ENV PYTHONPATH=/project/nitrate-config \
DJANGO_SETTINGS_MODULE=tcms.settings.product
WORKDIR /project
ADD app.tar.gz app/
COPY provision-base.sh .
RUN chmod u+x provision-base.sh && ./provision-base.sh && rm provision-base.sh
# SQLite database file could be placed in this volume
VOLUME ["/project/data"]