Add Dockerfiles and update package dependencies
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.
This commit is contained in:
16
logistics/Dockerfile
Normal file
16
logistics/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy only the necessary package files first
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
# Copy OpenAPI models into the build context
|
||||
COPY openapi ./openapi
|
||||
|
||||
# Copy the rest of the logistics app files
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
Reference in New Issue
Block a user