-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
49 lines (40 loc) · 1.05 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
FROM fedora:latest
RUN dnf -y upgrade \
&& dnf -y install \
nginx \
uwsgi \
uwsgi-plugin-python3 \
supervisor \
make \
curl \
python3-requests \
python3-jinja2 \
python3-defusedxml \
python3-tqdm \
python3-dnf \
npm \
rsync
WORKDIR /usr/local/src/packages
RUN mkdir /srv/packages
ENV OUTPUT_DIR /srv/packages
RUN mkdir /etc/packages
ENV DB_DIR /etc/packages/repositories
ENV MAINTAINER_MAPPING /etc/packages/pagure_owner_alias.json
ENV PRODUCT_VERSION_MAPPING /etc/packages/product_version_mapping.json
ENV SOLR_CORE packages
ENV SOLR_URL http://127.0.0.1:8983/
ENV SITEMAP_URL https://localhost:8080
ENV SEARCH_BACKEND True
COPY . .
RUN chmod -R o+rx assets
RUN make setup-js \
&& make js
COPY container/nginx.conf /etc/nginx/nginx.conf
COPY container/supervisord.conf /etc/supervisord.conf
# TODO: Figure out how to use a read-write volume for
# one container that manages static files
# and just serve from the rest with read-only mounts
VOLUME /srv/packages
VOLUME /etc/packages
EXPOSE 8080
ENTRYPOINT [ "./container/entrypoint.sh" ]