mirror of
https://github.com/aljazceru/hypergolic.git
synced 2025-12-17 05:24:21 +01:00
adding docker support
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -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
README.md
10
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user