diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6b9a019 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/README.md b/README.md index fb711b9..350444c 100644 --- a/README.md +++ b/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.