baiwan02 commited on
Commit
75d3ebf
·
verified ·
1 Parent(s): c6e1b30

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -17
Dockerfile CHANGED
@@ -1,23 +1,19 @@
1
- FROM golang:1.26 AS go-layer
2
-
3
- FROM node:24
4
-
5
- COPY --from=go-layer /usr/local/go /usr/local/go
6
- ENV PATH=/usr/local/go/bin:$PATH
7
-
8
- RUN apt-get update && \
9
- apt-get install -y --no-install-recommends git ca-certificates && \
10
- rm -rf /var/lib/apt/lists/*
11
 
12
  WORKDIR /app
13
 
14
- RUN git clone -b dev --single-branch https://github.com/CJackHwang/ds2api.git /app
 
 
 
 
 
 
 
15
 
16
- RUN node start.mjs install && \
17
- node start.mjs webui && \
18
- node start.mjs build
19
 
20
- ENV PORT=7860
21
- EXPOSE 7860
22
 
23
- CMD ["node", "start.mjs", "prod"]
 
1
+ FROM python:3.12-slim
 
 
 
 
 
 
 
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # install git, clone code, install deps, remove build-time deps
6
+ RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends git && \
8
+ git clone --single-branch https://github.com/Sophomoresty/gemini-web2api.git /app && \
9
+ pip install --no-cache-dir httpx && \
10
+ apt purge -y git && \
11
+ apt autoremove -y && \
12
+ rm -rf /var/lib/apt/lists/*
13
 
14
+ EXPOSE 8081
 
 
15
 
16
+ COPY entrypoint.sh /entrypoint.sh
17
+ RUN chmod +x /entrypoint.sh
18
 
19
+ ENTRYPOINT ["/entrypoint.sh"]