-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathDockerfile
29 lines (24 loc) · 907 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
FROM node:18.16.0
LABEL maintainer="ezPAARSE Team <[email protected]>"
ENV DEBIAN_FRONTEND noninteractive
ENV NODE_ENV production
ENV DOCKER_ENV 1
ENV PATH /opt/ezpaarse/bin:/opt/ezpaarse/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/sbin:$PATH
# install ezpaarse
COPY . /opt/ezpaarse
WORKDIR /opt/ezpaarse
RUN mkdir -p /opt/ezpaarse/logs
# minimal build of ezpaarse (install npm modules and build front)
RUN make node-modules build-nuxt && npm cache clear --force
# ezmasterification of ezpaarse
# see https://github.com/Inist-CNRS/ezmaster
# (no data directory)
RUN cp /opt/ezpaarse/config.json /opt/ezpaarse/config.local.json
RUN echo '{ \
"httpPort": 59599, \
"configPath": "/opt/ezpaarse/config.local.json" \
}' > /etc/ezmaster.json
# run ezpaarse process
EXPOSE 59599
ENTRYPOINT [ "/opt/ezpaarse/docker-entrypoint.sh" ]
CMD ["ezpaarse", "start", "--no-daemon"]