Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptofyre authored Aug 9, 2024
1 parent 498828e commit 22d7d0a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the latest Node.js image with Yarn pre-installed as a base
FROM oven/bun:canary-alpine
FROM node:22-alpine

# Set the working directory
WORKDIR /usr/src/app
Expand All @@ -10,8 +10,11 @@ RUN apk add --update-cache ffmpeg make gcc g++ python3
# Copy package.json and yarn.lock
COPY package.json yarn.lock ./

# Enable Corepack
RUN corepack enable

# Install dependencies using Yarn
RUN bun install
RUN yarn install

# Copy the rest of the application code
COPY . .
Expand All @@ -20,4 +23,4 @@ COPY . .
EXPOSE 3000

# Define the command to run the application
CMD ["bun", "start"]
CMD ["node", "server.mjs"]

0 comments on commit 22d7d0a

Please sign in to comment.