-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharm64.dma.Dockerfile
42 lines (30 loc) · 1.19 KB
/
arm64.dma.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
37
38
39
40
41
FROM arm64v8/node:lts
ARG CR_PAT
ENV CR_PAT=$CR_PAT
LABEL org.opencontainers.image.title = "DMA"
LABEL org.opencontainers.image.licenses = "MPL-2.0"
LABEL org.opencontainers.image.vendor = "AlexZeDim"
LABEL org.opencontainers.image.url = "https://raw.githubusercontent.com/AlexZeDim/cmnw-next/master/public/static/cmnw.png"
LABEL org.opencontainers.image.source = "https://github.com/AlexZeDim/cmnw"
LABEL org.opencontainers.image.description = "Intelligence always wins"
WORKDIR /usr/src/app
# Clone config from private github repo #
RUN git config --global url."https://alexzedim:${CR_PAT}@github.com/".insteadOf "https://github.com/"
RUN git clone https://github.com/AlexZeDim/cmnw-secrets.git
RUN mv cmnw-secrets/* .
RUN rm -rf cmnw-secrets
COPY package.json ./
# Installing private github packages #
RUN echo //npm.pkg.github.com/:_authToken=${CR_PAT} >> ~/.npmrc
RUN echo @alexzedim:registry=https://npm.pkg.github.com/ >> ~/.npmrc
RUN yarn install --network-timeout 1000000
COPY . .
RUN npm install -g @nestjs/cli
RUN nest build auctions \
&& nest build items \
&& nest build dma \
&& nest build gold \
&& nest build wowtoken \
&& nest build keys \
&& nest build realms
CMD ["node"]