Update Dockerfiles and add website Dockerfile
This commit is contained in:
parent
eb5c59c1e2
commit
93c6853d08
3 changed files with 21 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ COPY . .
|
|||
RUN pnpm build
|
||||
|
||||
# ===== STAGE 2: Production (static-web-server ~3MB binary) =====
|
||||
FROM joseluisq/static-web-server:2-alpine
|
||||
FROM docker.io/joseluisq/static-web-server:2-alpine
|
||||
|
||||
COPY --from=builder /app/dist /public
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# syntax=docker/dockerfile:1.7
|
||||
FROM golang:1.22-alpine AS builder
|
||||
FROM golang:1.24-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
|||
19
website/Dockerfile
Normal file
19
website/Dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM docker.io/denoland/deno:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Cache dependencies
|
||||
COPY deno.json deno.lock ./
|
||||
RUN deno cache --lock=deno.lock main.ts || true
|
||||
|
||||
# Copy source
|
||||
COPY . .
|
||||
|
||||
# Cache all dependencies
|
||||
RUN deno cache main.ts
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["run", "-A", "main.ts"]
|
||||
Loading…
Reference in a new issue