20 lines
321 B
Docker
20 lines
321 B
Docker
|
|
FROM node:22
|
|
|
|
# Create app directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Install app dependencies
|
|
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
|
|
|
#RUN npm install -g nodaemon
|
|
#COPY package*.json .
|
|
#RUN npm install
|
|
|
|
#UN npm install -g nodaemon
|
|
COPY . .
|
|
RUN npm install
|
|
|
|
|
|
EXPOSE 8080
|
|
CMD ./start.sh
|