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