-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
49 lines (36 loc) · 1.42 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
##########################################
# Dockerfile for udata
##########################################
FROM udata/system:py3.11
# Optionnal build arguments
ARG REVISION="N/A"
ARG CREATED="Undefined"
# OCI annotations
# See: https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL "org.opencontainers.image.title"="udata all-in-one"
LABEL "org.opencontainers.image.description"="udata with all known plugins and themes"
LABEL "org.opencontainers.image.authors"="Open Data Team"
LABEL "org.opencontainers.image.sources"="https://github.com/opendatateam/docker-udata"
LABEL "org.opencontainers.image.revision"=$REVISION
LABEL "org.opencontainers.image.created"=$CREATED
RUN apt-get update && apt-get install -y --no-install-recommends \
# uWSGI rooting features
libpcre3-dev \
# Clean up
&& apt-get autoremove\
&& apt-get clean\
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install udata and all known plugins
COPY requirements.pip /tmp/requirements.pip
RUN pip install -r /tmp/requirements.pip && pip check || pip install -r /tmp/requirements.pip
RUN rm -r /root/.cache
RUN mkdir -p /udata/fs /src
COPY udata.cfg entrypoint.sh /udata/
COPY uwsgi/*.ini /udata/uwsgi/
WORKDIR /udata
VOLUME /udata/fs
ENV UDATA_SETTINGS /udata/udata.cfg
EXPOSE 7000 7001
HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:7000/ || exit 1
ENTRYPOINT ["/udata/entrypoint.sh"]
CMD ["uwsgi"]