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

Added steps to containerize the project and run using docker #410

Open
wants to merge 4 commits into
base: master
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
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Use an official Node.js runtime as a parent image
FROM node:16.20.2-alpine

# Set the working directory in the container
WORKDIR /transform

# Install required binaries
RUN apk update && apk add git autoconf automake gcc build-base

# Copy the package.json file
COPY package*.json yarn.lock ./

# Install the dependencies
RUN yarn install --network-timeout 600000

# Copy the application code
COPY . .

# Build the Next.js application for production
RUN yarn && yarn build

# Expose port 3000
EXPOSE 3000

# Run the Next.js production server
CMD ["yarn", "start"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ MIT @ Ritesh Kumar
## Self Hosting

- You can self-host the project by running `yarn && yarn build && yarn start`
- You can also use docker to build and run transform using `docker build -t transform . && docker run -d --name transform -p 3000:3000 transform`

## Contributors

Expand Down