-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 942 Bytes
/
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
FROM node:12-alpine as frontend
WORKDIR /build
COPY ./front /build
RUN npm ci && npm run production
# Pull official base image
FROM registry.gitlab.com/scripta/escriptorium/base:0.13.8-django-4.1
# try to autodetect number of cpus available
# ENV NGINX_WORKER_PROCESSES auto
ARG VERSION_DATE="passthistobuildcmd"
ENV VERSION_DATE=$VERSION_DATE
ENV FRONTEND_DIR=/usr/src/app/front
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
# set work directory
WORKDIR /usr/src/app
COPY ./app/entrypoint.sh /usr/src/app/entrypoint.sh
COPY ./app/manage.py /usr/src/app/manage.py
COPY ./app/requirements.txt /usr/src/app/requirements.txt
COPY ./app/uwsgi.ini /usr/src/app/uwsgi.ini
COPY ./app/apps /usr/src/app/apps
COPY ./app/escriptorium /usr/src/app/escriptorium
COPY ./app/locale /usr/src/app/locale
COPY ./app/homepage /usr/src/app/homepage
COPY --from=frontend /build/dist /usr/src/app/front
# run entrypoint.sh
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]