mirror of
https://github.com/logos-messaging/logos-messaging-frontend.git
synced 2026-01-02 13:53:13 +00:00
28 lines
574 B
Docker
28 lines
574 B
Docker
# Use an official Node.js runtime as a parent image
|
|
FROM node:18-alpine
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy the rest of the application code
|
|
COPY . .
|
|
|
|
# Install Vite globally (optional if not using npx or npm run dev directly)
|
|
RUN npm install -g vite
|
|
|
|
# Expose the port Vite runs on
|
|
EXPOSE 4000
|
|
|
|
# Ensure node_modules/.bin is in the PATH
|
|
ENV PATH /app/node_modules/.bin:$PATH
|
|
|
|
# Run the Vite development server
|
|
CMD ["npm", "run", "dev"]
|
|
|