-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (33 loc) · 1.03 KB
/
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
FROM node:20
WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get install vim
RUN npm install -g @microsoft/rush ts-node-dev
COPY . .
COPY id_ed25519 /root/.ssh/id_ed25519
RUN chmod 600 /root/.ssh/id_ed25519
COPY ssh_config /root/.ssh/config
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
WORKDIR /usr/src/app
RUN git clone git@arkenbot:arkenrealms/arken.git
WORKDIR /usr/src/app/arken
RUN git submodule init
RUN git submodule update --remote --recursive
RUN rm rush.json
RUN mv rush.evolution.json rush.json
WORKDIR /usr/src/app/arken/packages/node
RUN git checkout dev
WORKDIR /usr/src/app/arken/packages/evolution
RUN git checkout main
RUN git submodule init
RUN git submodule update --remote --recursive
WORKDIR /usr/src/app/arken/packages/evolution/packages/protocol
RUN git checkout main
WORKDIR /usr/src/app/arken/packages/evolution/packages/shard
RUN git checkout main
WORKDIR /usr/src/app/arken/packages/evolution/packages/realm
RUN git checkout main
RUN rush update
EXPOSE 4010 4011 4020 4021
CMD ["sleep", "infinity"]
# CMD ["rushx dev"]