22 lines
595 B
Docker
22 lines
595 B
Docker
FROM node:23-alpine
|
|
|
|
WORKDIR /
|
|
|
|
# Copy package.json and package-lock.json
|
|
COPY WebServices/management-frontend/package*.json ./WebServices/management-frontend/
|
|
|
|
# Install dependencies
|
|
RUN cd ./WebServices/management-frontend && npm install --legacy-peer-deps
|
|
|
|
# Copy the rest of the application
|
|
COPY WebServices/management-frontend ./WebServices/management-frontend
|
|
|
|
## Build the Next.js app
|
|
#RUN cd ./WebServices/management-frontend && npm run build
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 3000
|
|
|
|
# Command to run the app
|
|
CMD ["sh", "-c", "cd /WebServices/management-frontend && npm run dev"]
|