Skip to content

Commit 96a3883

Browse files
committed
Optimize Dockerfile
1 parent a5ab255 commit 96a3883

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
FROM node:lts-alpine3.10
1+
FROM docker.io/library/node:lts-alpine
22

33
WORKDIR /usr/src/app
44

5+
ENV \
6+
NODE_ENV=production \
7+
PORT=3000 \
8+
HOST=0.0.0.0
9+
10+
CMD [ "npm", "start" ]
11+
512
COPY package*.json ./
613

714
RUN npm i --only=production
815

916
# Bundle app source
1017
COPY . .
11-
12-
ENV NODE_ENV=production
13-
ENV PORT=3000
14-
15-
EXPOSE 3000
16-
CMD [ "npm", "start" ]

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "netlify-cms-github-oauth-provider",
3-
"version": "1.0.0",
43
"engines": {
54
"node": ">=7.x"
65
},
76
"description": "netlify oauth github client sending token in form as netlify service itself",
8-
"repository": "https://github.com/vencax/netlify-cms-github-oauth-provider",
7+
"repository": "https://github.com/appuio/netlify-cms-github-oauth-provider",
98
"main": "index.js",
109
"scripts": {
1110
"test": "echo \"Error: no test specified\" && exit 1",

0 commit comments

Comments
 (0)