Skip to content

Commit 651667a

Browse files
Merge pull request #11 from softrams/fix-package-lock
fix: use public npm
2 parents 7270ea5 + d3ff023 commit 651667a

File tree

3 files changed

+166
-1087
lines changed

3 files changed

+166
-1087
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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ FROM node:current-alpine
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)