2024-11-08 10:44:42 +01:00
|
|
|
FROM node:alpine
|
2024-11-08 07:51:28 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2024-11-08 09:32:57 +01:00
|
|
|
#RUN npm install -g nodaemon
|
2024-11-08 10:42:24 +01:00
|
|
|
#COPY package*.json .
|
|
|
|
#RUN npm install
|
2024-11-08 07:51:28 +01:00
|
|
|
|
2024-11-08 09:32:57 +01:00
|
|
|
#UN npm install -g nodaemon
|
2024-11-08 10:42:24 +01:00
|
|
|
COPY . .
|
|
|
|
RUN npm install
|
2024-11-08 09:32:57 +01:00
|
|
|
|
2024-11-08 07:51:28 +01:00
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ./start.sh
|