-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (22 loc) · 840 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
35
36
FROM node:18.14
ARG CR_PAT
ENV CR_PAT=$CR_PAT
LABEL org.opencontainers.image.title = "CMNW-ORACULUM"
LABEL org.opencontainers.image.vendor = "AlexZeDim"
LABEL org.opencontainers.image.url = "https://i.imgur.com/CY0Kqy3.png"
LABEL org.opencontainers.image.source = "https://github.com/AlexZeDim/cmnw-oraculum"
RUN apt-get update
RUN apt-get install -y git
WORKDIR /usr/src/app
RUN npm install -g @nestjs/cli
RUN git config --global url."https://alexzedim:${CR_PAT}@github.com/".insteadOf "https://github.com/"
RUN git clone https://github.com/AlexZeDim/oraculum-secrets.git
RUN mv oraculum-secrets/* oraculum-secrets/.[^.]* . && rmdir oraculum-secrets/
COPY package.json ./
RUN yarn install
COPY . .
RUN nest build rainy \
&& nest build fefenya \
&& nest build pepa-chat-git \
&& nest build rodriga
CMD wait && ["node"]