File size: 487 Bytes
856448a
e9e55e7
856448a
e9e55e7
856448a
 
e9e55e7
856448a
 
 
e9e55e7
 
 
856448a
e9e55e7
856448a
 
 
e9e55e7
 
 
 
856448a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.26 AS go-layer

FROM node:24

COPY --from=go-layer /usr/local/go /usr/local/go
ENV PATH=/usr/local/go/bin:$PATH

RUN apt-get update && \
apt-get install -y --no-install-recommends git ca-certificates && \
rm -rf /var/lib/apt/lists/*

WORKDIR /app

RUN git clone -b dev --single-branch https://github.com/CJackHwang/ds2api.git /app

RUN node start.mjs install && \
node start.mjs webui && \
node start.mjs build

ENV PORT=7860
EXPOSE 7860

CMD ["node", "start.mjs", "prod"]