Skip to content

Commit

Permalink
updated with working
Browse files Browse the repository at this point in the history
  • Loading branch information
suyeshs committed Apr 17, 2024
1 parent 7df2466 commit 4c059ea
Show file tree
Hide file tree
Showing 86 changed files with 7,272 additions and 4,687 deletions.
3 changes: 3 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
REACT_APP_BASE_URL=http://127.0.0.1:8000/

MONGODB_URI="mongodb://localhost:27017"




23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Use an official Node runtime as a parent image
FROM node:latest

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

# Copy package.json and package-lock.json (if available)
COPY package*.json ./

# Install any needed packages specified in package.json
RUN npm install

# Copy the current directory contents into the container at /usr/src/app
COPY . .

# Build the Next.js app
RUN npm run build

# Make port 3000 available to the world outside this container
EXPOSE 3000

# Run the app when the container launches
CMD ["npm", "start"]
File renamed without changes.
6 changes: 5 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ module.exports = {
};
}

// If you have other webpack modifications, they should be done here
// Add rule to handle .node files using raw-loader
config.module.rules.push({
test: /\.node$/,
use: 'raw-loader',
});

return config;
},
Expand Down
Loading

0 comments on commit 4c059ea

Please sign in to comment.