Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker support and update README.md #1531

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use Node.js official image as the base image
FROM node:18

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and yarn.lock to the working directory
COPY package.json yarn.lock ./

# Install application dependencies using Yarn
RUN yarn

# Copy the rest of the application code to the working directory
COPY . .

# Command to start the development server
CMD ["yarn", "dev"]

# Expose the port on which the application will run
EXPOSE 3000
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,20 @@ If you are using Google Chrome, or another browser that supports Progressive Web
2. Click your browser's settings menu
3. Click "Install Carbon..."

#### Running Carbon with Docker

If you prefer to run Carbon using Docker, follow these steps:

1. Build the Docker Image
```sh
docker build -t carbon .
```
2. Run the Docker Container
```sh
docker run -p 3000:3000 carbon
```
3. Open your web browser and go to http://localhost:3000.

## Community

Check out these projects our awesome community has created:
Expand Down