adding docker support

This commit is contained in:
2024-08-23 12:06:27 +02:00
parent aa4a9ee792
commit eb04e88ab2
2 changed files with 30 additions and 0 deletions

20
Dockerfile Normal file
View 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"]

View File

@@ -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.