Skip to content

Commit

Permalink
Merge pull request #11 from softrams/fix-package-lock
Browse files Browse the repository at this point in the history
fix: use public npm
  • Loading branch information
patrickgreenwell authored Jul 11, 2024
2 parents 7270ea5 + d3ff023 commit 651667a
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 1,087 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
npm-debug.log
npm-debug.log
.git
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ FROM node:current-alpine
WORKDIR /usr/src/app

# Install app dependencies
COPY package*.json ./
RUN npm ci --only=production
#COPY package*.json ./
COPY . ./
RUN npm ci --omit=dev
RUN npm i -g pm2

# Bundle app source
COPY . .
#OPY . .

EXPOSE 3000
CMD [ "pm2-runtime", "start", "index.js" ]
CMD [ "pm2-runtime", "start", "index.js" ]
Loading

0 comments on commit 651667a

Please sign in to comment.