Skip to content

Commit

Permalink
Merge pull request #4 from OB-SPrince/master
Browse files Browse the repository at this point in the history
Dockerization of the app
  • Loading branch information
suparious authored Apr 13, 2024
2 parents fc21b22 + d9113a4 commit 54a1103
Show file tree
Hide file tree
Showing 4 changed files with 5,496 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# dependencies
/node_modules
package-lock.json
/.pnp
.pnp.js

Expand Down
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.js runtime as a parent image, using the Alpine version for a smaller footprint
FROM node:20-alpine

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json (or yarn.lock if using Yarn)
COPY package.json package-lock.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Build the Next.js application
RUN npm run build

# Next.js starts by default on port 3000, expose this port
EXPOSE 3000

# Command to run the Next.js application
CMD ["npm", "start"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ npm i
npm run dev
```

## Using Docker

```bash
docker build -t solidrust/srt-clarity-search -f Dockerfile .
```

```bash
docker run -it -p 3000:3000 solidrust/srt-clarity-search
```

## Improvement Ideas

Here are some ideas for how to improve Clarity:
Expand Down
Loading

0 comments on commit 54a1103

Please sign in to comment.