
Introduced Dockerfiles for logistics and frontend applications to streamline development and deployment. Updated package dependencies in the frontend to newer versions for improved stability and compatibility.
16 lines
370 B
Docker
16 lines
370 B
Docker
FROM node:18
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy dependency files and install dependencies
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
|
|
# Copy rest of the code and build the application
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# Use a simple HTTP server to serve the built static files
|
|
EXPOSE 5173
|
|
CMD ["npx", "vite", "preview", "--port", "5173"] |