From 3d833c48f524d62f7b5d403da9b8af895f528f02 Mon Sep 17 00:00:00 2001 From: Varun Raj Date: Sun, 18 Aug 2024 20:48:28 +0530 Subject: [PATCH] fix: updated bun in docker file Signed-off-by: Varun Raj --- Dockerfile | 23 ++++++++++------------- src/components/people/PeopleList.tsx | 2 +- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b078fa..7d772ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,20 @@ -# Use an official Node.js runtime as the base image -FROM node:18-alpine +# docker/dev.Dockerfile +FROM oven/bun:latest -# Set the working directory in the container -WORKDIR /app +WORKDIR /app/next-app -# Copy package.json and package-lock.json to the working directory -COPY package*.json ./ +COPY package.json ./ +COPY bun.lockb ./ -# Install dependencies -RUN npm ci +RUN bun install -# Copy the rest of the application code COPY . . -# Build the Next.js application -RUN npm run build +ENV NEXT_TELEMETRY_DISABLED=1 + +RUN bun next build -# Expose the port that Next.js uses EXPOSE 3000 # Set the command to run the application -CMD ["npm", "start"] \ No newline at end of file +CMD ["bun", "run", "start"] \ No newline at end of file diff --git a/src/components/people/PeopleList.tsx b/src/components/people/PeopleList.tsx index 3d4d89c..3aaec78 100644 --- a/src/components/people/PeopleList.tsx +++ b/src/components/people/PeopleList.tsx @@ -85,7 +85,7 @@ export default function PeopleList() { return (
{people.map((person) => ( - + ))}
)