.
All checks were successful
Publish to OCI / publish (push) Successful in 2m29s

This commit is contained in:
Mrrp 2025-01-25 20:01:21 -08:00
parent 641f1856be
commit 9245c6c3d4

View file

@ -1,9 +1,23 @@
FROM node:latest FROM denoland/deno:latest
WORKDIR /app WORKDIR /app
# Copy the package.json and install dependencies
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN deno i
# Copy the rest of the application
COPY . . COPY . .
RUN npm run build
EXPOSE 80 # Run build task
ENV NITRO_PORT 80 RUN deno task build
CMD ["node .output/server/index.mjs"]
# 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 deno run --allow-all .output/server/index.mjs