Does this work?

This commit is contained in:
2025-04-24 12:03:03 -06:00
parent ee44847974
commit f33dc130b8
9 changed files with 203 additions and 14 deletions

30
Dockerfile Normal file
View File

@ -0,0 +1,30 @@
FROM denoland/deno:alpine AS builder
WORKDIR /app
COPY deno.json import_map.json ./
COPY dev.ts main.ts .env* ./
COPY components/ ./components/
COPY islands/ ./islands/
COPY lib/ ./lib/
COPY posts/ ./posts/
COPY routes/ ./routes/
COPY static/ ./static/
COPY utils/ ./utils/
RUN deno cache main.ts
FROM denoland/deno:alpine
WORKDIR /app
COPY --from=builder /deno-dir/ /deno-dir/
COPY --from=builder /app/ /app/
ENV DENO_DEPLOYMENT=production
EXPOSE 8000
# Run the server
CMD ["run", "-A", "main.ts"]