forked from mmolenda/missalemeum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (32 loc) · 1.31 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
FROM node:alpine as build
WORKDIR .
COPY ./frontend/package.json ./
COPY ./frontend/package-lock.json ./
RUN npm install --omit=optional
COPY ./frontend/public ./public
COPY ./frontend/src ./src
RUN npm run build
FROM python:3.9-slim-buster
RUN apt-get update
RUN apt-get -y upgrade
ARG VERSION
ENV PYTHONPATH=/app/missalemeum
WORKDIR /app
COPY requirements.txt ./
RUN pip install -r requirements.txt
RUN mkdir -pv \
resources/divinum-officium/web/www/missa/Latin \
resources/divinum-officium/web/www/missa/English \
resources/divinum-officium/web/www/missa/Polski
COPY resources/divinum-officium/web/www/missa/Latin ./resources/divinum-officium/web/www/missa/Latin
COPY resources/divinum-officium/web/www/missa/English ./resources/divinum-officium/web/www/missa/English
COPY resources/divinum-officium/web/www/missa/Polski ./resources/divinum-officium/web/www/missa/Polski
COPY resources/ordo ./resources/ordo
COPY resources/propers ./resources/propers
COPY resources/supplement ./resources/supplement
COPY resources/divinum-officium-custom ./resources/divinum-officium-custom
COPY missalemeum ./missalemeum
COPY --from=build ./build/ ./build
COPY tests ./tests
RUN echo $VERSION > ./missalemeum/__version__
CMD [ "gunicorn", "--bind", "0.0.0.0:8000", "-w", "4", "wsgi", "--access-logfile", "-"]