Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (46 loc) · 1.71 KB
/
Copy pathDockerfile
File metadata and controls
60 lines (46 loc) · 1.71 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Base Image
FROM ubuntu:22.04
LABEL MAINTAINER="AIRR Knowledge <airr-knowledge@utsouthwestern.edu>"
# Install OS Dependencies
RUN DEBIAN_FRONTEND='noninteractive' apt-get update && DEBIAN_FRONTEND='noninteractive' apt-get install -y \
make \
gcc g++ \
sendmail-bin \
supervisor \
wget \
xz-utils
##################
##################
# node
ENV NODE_VER v18.17.1
RUN wget https://nodejs.org/dist/$NODE_VER/node-$NODE_VER-linux-x64.tar.xz
RUN tar xf node-$NODE_VER-linux-x64.tar.xz
RUN cp -rf /node-$NODE_VER-linux-x64/bin/* /usr/bin
RUN cp -rf /node-$NODE_VER-linux-x64/lib/* /usr/lib
RUN cp -rf /node-$NODE_VER-linux-x64/include/* /usr/include
RUN cp -rf /node-$NODE_VER-linux-x64/share/* /usr/share
##################
##################
# setup vdj user
#RUN echo "vdj:x:816290:803419:VDJServer,,,:/home/vdj:/bin/bash" >> /etc/passwd
#RUN echo "G-803419:x:803419:vdj" >> /etc/group
#RUN mkdir /home/vdj
#RUN chown vdj /home/vdj
#RUN chgrp G-803419 /home/vdj
# Setup supervisor
COPY docker/scripts/start_supervisor.sh /root/start_supervisor.sh
COPY docker/supervisor/supervisor.conf /etc/supervisor/conf.d/
##################
##################
# Copy project source
RUN mkdir /ak-web-api
COPY . /ak-web-api
# build vdjserver-schema and airr-js from source
#RUN cd /vdjserver-web-api/app/vdjserver-schema/airr-standards/lang/js && npm install --unsafe-perm
#RUN cd /vdjserver-web-api/app/vdjserver-schema && npm install --unsafe-perm
#RUN cd /vdjserver-web-api/app/airr-standards/lang/js && npm install && npm run test
#RUN cd /vdjserver-web-api/app/vdjserver-schema && npm install
RUN cd /ak-web-api && npm install
# ESLint
RUN cd /ak-web-api && npm run eslint app vdj-tapis-js
CMD ["/root/start_supervisor.sh"]