personal-site/Dockerfile
Seven Of Aces 2912627cb6
All checks were successful
Publish to OCI / publish (push) Successful in 3m45s
.
2025-01-25 20:22:41 -08:00

23 lines
400 B
Docker

FROM node:latest
WORKDIR /app
# Copy the package.json and install dependencies
COPY package*.json ./
RUN npm install
# Copy the rest of the application
COPY . .
# Run build task
RUN npm run 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