Hermes Agent commited on
Commit
dc56e34
·
1 Parent(s): cd68604

Fix: use main branch, config path /app/config.json

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -4,7 +4,7 @@
4
  # Stage 1: Get source code
5
  FROM alpine/git:v2.45.2 AS source
6
  RUN apk add --no-cache git && \
7
- git clone --depth 1 -b feat/tool-vm https://github.com/buyi06/ds2api.git /src
8
 
9
  # Stage 2: Build webui
10
  FROM node:24-alpine AS webui-builder
@@ -31,7 +31,7 @@ RUN apt-get update && \
31
 
32
  COPY --from=go-builder /out/ds2api /usr/local/bin/ds2api
33
  COPY --from=webui-builder /app/static/admin /app/static/admin
34
- COPY --chmod=666 config.json /data/config.json
35
 
36
  ENV PORT=7860
37
  EXPOSE 7860
 
4
  # Stage 1: Get source code
5
  FROM alpine/git:v2.45.2 AS source
6
  RUN apk add --no-cache git && \
7
+ git clone --depth 1 https://github.com/buyi06/ds2api.git /src
8
 
9
  # Stage 2: Build webui
10
  FROM node:24-alpine AS webui-builder
 
31
 
32
  COPY --from=go-builder /out/ds2api /usr/local/bin/ds2api
33
  COPY --from=webui-builder /app/static/admin /app/static/admin
34
+ COPY --chmod=666 config.json /app/config.json
35
 
36
  ENV PORT=7860
37
  EXPOSE 7860