From d7ffefc4d4cef97a4240345c6cfe6e4d52e57a32 Mon Sep 17 00:00:00 2001 From: Seven Of Aces Date: Sat, 25 Jan 2025 21:08:35 -0800 Subject: [PATCH] . --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index cd44414..f5bb2b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,22 @@ -FROM node:latest +FROM denoland/deno:latest WORKDIR /app # Copy the package.json and install dependencies COPY package*.json ./ -RUN npm install +RUN deno i # Copy the rest of the application COPY . . # Run build task -RUN npm run build +RUN deno task build # Expose port 80 for the application EXPOSE 3000 -ENV NITRO_PORT 3000 # Verify the file exists and can be executed RUN ls -la .output/server/ # Run the Deno server -CMD node .output/server/index.mjs +CMD deno run --allow-all .output/server/index.mjs