Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

fix: use npm v8 in expressapp container to workaround slow npm install from github #1484

Merged
merged 1 commit into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/nodejs/express/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
8 changes: 4 additions & 4 deletions docker/nodejs/express/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:12.18.1
FROM node:16.15.0

RUN mkdir -p /app
RUN npm install express

COPY app.js /app
COPY package.json .npmrc app.js /app/

WORKDIR /app
RUN npm install

9 changes: 9 additions & 0 deletions docker/nodejs/express/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "expressapp",
"version": "1.0.0",
"private": true,
"main": "app.js",
"dependencies": {
"express": "*"
}
}