Skip to content

Commit

Permalink
Merge pull request #123 from aljazceru/MASTER
Browse files Browse the repository at this point in the history
adding docker support to hypergolic
  • Loading branch information
gsovereignty authored Aug 24, 2024
2 parents 9453d87 + eb04e88 commit 2870c54
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use the official Node.js 18 image as the base image
FROM node:18

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

# Copy package.json and package-lock.json to leverage Docker's cache
COPY package*.json ./

# Install the project dependencies inside the container
RUN npm install

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

# Expose the port your application will run on (optional)
EXPOSE 5173

# Start the container with 'npm run dev'
CMD ["npm", "run", "dev"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ npm install
npm run dev
```

### Docker
```bash
git clone https://github.com/aljazceru/hypergolic.git
cd hypergolic
docker build . -t hypergolic
docker run -p 5173:5173 hypergolic
# open http://localhost:5173 in browser
```


## Pull Requests

Please only solve ONE problem at a time.
Expand Down

0 comments on commit 2870c54

Please sign in to comment.