-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserver
More file actions
47 lines (32 loc) · 1.1 KB
/
Copy pathserver
File metadata and controls
47 lines (32 loc) · 1.1 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
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV NVM_DIR=/root/.nvm
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
wget \
&& rm -rf /var/lib/apt/lists/*
# NVM + Node 16
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 16.20.2 \
&& nvm alias default 16.20.2
ENV PATH="/root/.nvm/versions/node/v16.20.2/bin:$PATH"
# mongosh
RUN wget -q https://downloads.mongodb.com/compass/mongosh-2.3.8-linux-x64.tgz \
&& tar -xzf mongosh-2.3.8-linux-x64.tgz \
&& mv mongosh-2.3.8-linux-x64/bin/mongosh /usr/local/bin/mongosh \
&& rm -rf mongosh-2.3.8-linux-x64.tgz mongosh-2.3.8-linux-x64
RUN node --version \
&& npm --version \
&& mongosh --version
COPY ./backend/package*.json ./
RUN npm install
COPY ./backend .
RUN mkdir ./output ./input
COPY ./backend/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN date > /app/date.txt
CMD ["node", "mapper"]