Skip to content

Commit

Permalink
Node 23
Browse files Browse the repository at this point in the history
  • Loading branch information
itswadesh committed Nov 8, 2024
1 parent 626edd4 commit c5c795b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
# Use an official Node.js runtime as a parent image
FROM node:22-alpine

ARG BASE_IMAGE="node:23-slim"
FROM ${BASE_IMAGE}
LABEL author="Swadesh Behera"

# Set the working directory inside the container
WORKDIR /usr/src/app
WORKDIR /usr/app

# Copy package.json and package-lock.json (if available) to the working directory
COPY package*.json ./

RUN npm install -g bun

# Install dependencies
RUN npm install
RUN bun i

# Copy the rest of your application's source code to the working directory
COPY . .

# Build the project (if needed)
RUN npm run build
RUN bun run build

# Expose the port that your application runs on
EXPOSE 3000
Expand All @@ -25,4 +27,4 @@ EXPOSE 3000
ENV NODE_ENV=production

# Start the application
CMD ["npm", "start"]
CMD ["bun", "start"]

0 comments on commit c5c795b

Please sign in to comment.