
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.
17 lines
284 B
Docker
17 lines
284 B
Docker
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
|