mirror of
https://github.com/aljazceru/hypergolic.git
synced 2025-12-17 05:24:21 +01:00
20 lines
516 B
Docker
20 lines
516 B
Docker
# 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"] |