-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathContainerfile
More file actions
24 lines (16 loc) · 1011 Bytes
/
Copy pathContainerfile
File metadata and controls
24 lines (16 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM registry.access.redhat.com/ubi10/ubi-minimal:10.2-1789456728@sha256:5b07a4099a1893e379a8eaf55768026337ab4ccb6affb44ea4506b7437199294
ADD api/*.txt /lunch/
RUN microdnf -y install python3 python3-devel libxml2-devel libxslt-devel poppler-utils && \
microdnf clean all && \
pip3 install --no-cache-dir -r /lunch/requirements.txt
ENV TZ="Europe/Prague"
# apscheduler fix
RUN echo "Europe/Prague" > /etc/timezone
ADD api/*.py /lunch/
ADD api/*.yml /lunch/
ADD api/restaurants/*.py /lunch/restaurants/
# Web must be built first using build_web.sh
ADD web/build/* /lunch/html/
ADD web/build/static/js/* /lunch/html/static/js/
ENV ENABLED_RESTAURANTS=asport,bistro22,cookpoint,kancl,qwerty,alvin,moravia,portoriko,charlies_park,jidelna_sto_chuti,nepal,royalnepal,purkynka,primesteak,k2,kotelna,padthai,3opice,sesamo,jeanpauls,rubin,poupe,charlies_square,u_3_certu_starobrnenska,padowetz,sindelar,statl,tusto,sportpub
ENTRYPOINT ["python3", "-m", "lunch.lunch"]