Skip to content

Commit d3ba2ff

Browse files
fix: use public npm
1 parent 7270ea5 commit d3ba2ff

File tree

3 files changed

+167
-1088
lines changed

3 files changed

+167
-1088
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
npm-debug.log
2+
npm-debug.log
3+
.git

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
FROM node:current-alpine
1+
FROM node:18
22

33
# Create app directory
44
WORKDIR /usr/src/app
55

66
# Install app dependencies
7-
COPY package*.json ./
8-
RUN npm ci --only=production
7+
#COPY package*.json ./
8+
COPY . ./
9+
RUN npm ci --omit=dev
910
RUN npm i -g pm2
1011

1112
# Bundle app source
12-
COPY . .
13+
#OPY . .
1314

1415
EXPOSE 3000
15-
CMD [ "pm2-runtime", "start", "index.js" ]
16+
CMD [ "pm2-runtime", "start", "index.js" ]

0 commit comments

Comments
 (0)