Highly ambitious ATProtocol AppView service and sdks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update frontend dockerfile

+21 -5
+21 -5
frontend/Dockerfile
··· 1 - FROM denoland/deno:2.4.5 1 + FROM denoland/deno:2.4.5 AS builder 2 2 3 3 # Install sqlite3 4 4 RUN apt-get update && apt-get install -y sqlite3 && rm -rf /var/lib/apt/lists/* 5 5 6 6 WORKDIR /app 7 7 8 - # Copy workspace lock file and all Deno packages 8 + # Copy files 9 9 COPY deno.lock /app/deno.lock 10 10 COPY deno.json /app/deno.json 11 11 COPY frontend/ /app/frontend/ ··· 17 17 COPY packages/client/ /app/packages/client/ 18 18 COPY docs/ /app/docs/ 19 19 20 - # Cache from frontend directory 21 - RUN deno cache ./frontend/src/main.ts 20 + # Cache dependencies with clean slate 21 + RUN deno cache --reload ./frontend/src/main.ts 22 + 23 + # Final stage 24 + FROM denoland/deno:2.4.5 22 25 23 - # Prefer not to run as root 26 + RUN apt-get update && apt-get install -y sqlite3 && rm -rf /var/lib/apt/lists/* 27 + 28 + WORKDIR /app 29 + 30 + # Copy everything from builder 31 + COPY --from=builder /app /app 32 + COPY --from=builder /deno-dir /deno-dir 33 + 34 + # Clean up any problematic symlinks and create directories with proper permissions 35 + RUN rm -rf /app/node_modules 2>/dev/null || true 36 + RUN find /app -name "node_modules" -type d -exec rm -rf {} + 2>/dev/null || true 37 + RUN mkdir -p /app/node_modules/.deno && chown -R deno:deno /app/node_modules 38 + RUN chown -R deno:deno /app 39 + 24 40 USER deno 25 41 EXPOSE 8080 26 42