Create Dockerfile
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
FROM node:18-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# Default to production mode
|
||||||
|
CMD ["npm", "start"]
|
||||||
|
|
||||||
|
# For development mode, override with: docker run -e NODE_ENV=development ...
|
||||||
|
CMD ["npm", "run", "dev"]
|
||||||
|
|
||||||
|
#ABHI
|
||||||
Reference in New Issue
Block a user