-
Notifications
You must be signed in to change notification settings - Fork 406
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 943 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM denoland/deno:2.7.14
WORKDIR /app
ENV DENO_DIR=/deno-dir
ENV TRENDPUBLISH_RUNTIME=docker
ENV TRENDPUBLISH_CONFIG=/app/config/trendpublish.config.ts
COPY deno.json deno.lock ./
COPY dashboard ./dashboard
COPY src ./src
COPY scripts ./scripts
COPY migrations ./migrations
COPY trendpublish.config.example.ts ./trendpublish.config.example.ts
COPY trendpublish.config.docker.example.ts ./trendpublish.config.docker.example.ts
COPY trendpublish.config.cloudflare.ts ./trendpublish.config.cloudflare.ts
COPY wrangler.jsonc ./wrangler.jsonc
RUN deno run --config dashboard/deno.json -A npm:vite@8.0.13 build --config dashboard/vite.config.ts
RUN deno cache src/index.ts src/apps/weixin-relay/server.ts scripts/run.workflow.ts scripts/doctor.ts scripts/preview.weixin.ts
RUN mkdir -p /app/config /app/src/temp \
&& ln -s /app/src /app/config/src \
&& chown -R deno:deno /app /deno-dir
USER deno
EXPOSE 8000
CMD ["deno", "task", "dev"]