Update Dockerfile
Browse files- Dockerfile +33 -5
Dockerfile
CHANGED
@@ -1,8 +1,36 @@
|
|
1 |
-
|
2 |
-
FROM ghcr.io/yufeikang/raycast_api_proxy:main
|
3 |
|
4 |
-
RUN
|
|
|
5 |
|
6 |
-
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|