Web service initiated
This commit is contained in:
21
WebServices/management-frontend/Dockerfile
Normal file
21
WebServices/management-frontend/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM node:18-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
|
||||
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user