diff --git a/Dockerfile b/Dockerfile --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/denoland/deno:distroless-2.7.14 +FROM ghcr.io/denoland/deno:debian-2.7.14 AS builder ARG GIT_REVISION ENV DENO_DEPLOYMENT_ID=${GIT_REVISION} @@ -9,6 +9,11 @@ RUN deno task build +FROM ghcr.io/denoland/deno:distroless-2.7.14 + +WORKDIR /app +COPY --from=builder /app/_fresh/ ./ + EXPOSE 8000 -CMD ["deno", "serve", "--allow-env", "--allow-net", "_fresh/server/server_entry.mjs"] +CMD ["deno", "serve", "--allow-env", "--allow-net", "./server/server_entry.mjs"]