smgc commited on
Commit
f625721
1 Parent(s): 585ca49

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -5
Dockerfile CHANGED
@@ -1,8 +1,36 @@
1
- # build stage
2
- FROM ghcr.io/yufeikang/raycast_api_proxy:main
3
 
4
- RUN sed -i'' 's|--port 80|--port 8000|g' /entrypoint.sh
 
5
 
6
- RUN chmod 777 -R .
7
 
8
- EXPOSE 8000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM --platform=$BUILDPLATFORM node:21-alpine AS builder
 
2
 
3
+ RUN apk add make g++ alpine-sdk python3 py3-pip
4
+ RUN npm i -g pnpm
5
 
6
+ WORKDIR /app
7
 
8
+ RUN chmod 777 -R /app
9
+
10
+ RUN git clone https://github.com/wibus-wee/raycast-unblock.git .
11
+ # Exclude packages/raycast -- just delete it...
12
+ RUN rm -rf packages/raycast
13
+ RUN pnpm install
14
+ RUN pnpm build:core
15
+ RUN pnpm bundle
16
+
17
+ FROM --platform=$BUILDPLATFORM caddy:2.6.2-alpine AS runner
18
+
19
+ RUN apk add --no-cache libstdc++
20
+
21
+ WORKDIR /app
22
+
23
+ RUN mkdir -p /raycast_sync && chmod 777 -R /raycast_sync
24
+ RUN mkdir -p /.raycast_unblock && chmod 777 -R /.raycast_unblock
25
+
26
+ COPY --from=builder /app/dist/raycast-unblock-app .
27
+ COPY config.toml ./config.toml
28
+ COPY entrypoint.sh ./entrypoint.sh
29
+
30
+ RUN chmod 777 -R /app
31
+
32
+ ENV TZ=Asia/Shanghai
33
+
34
+ EXPOSE 3000
35
+
36
+ ENTRYPOINT ["./entrypoint.sh"]