forked from zotero/citeproc-js-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 848 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
# Docker image for citeproc-node app
# Usage: $ docker run -d -p 8085:8085 -t {this image}
FROM node:18-bullseye-slim
MAINTAINER LibreCat community <[email protected]>
# Install prerequisites (for installation only)
RUN apt update -y\
&& apt install -y --no-install-recommends git ca-certificates python \
&& apt -y autoremove \
&& apt -y autoclean
# Add source
RUN git clone --recurse-submodules https://github.com/zotero/citeproc-js-server.git
WORKDIR citeproc-js-server
RUN npm install
# Append nodejs binaries TO PATH
ENV PATH node_modules/.bin:$PATH
# XML to JSON for optimal performance
RUN ./xmltojson.py ./csl ./csl-json \
&& ./xmltojson.py ./csl-locales ./csl-locales-json
# Override configuration
ADD citeServerConf.json config/default.json
# Expose port
EXPOSE 8085
# run app
CMD ["npm", "start"]