Skip to content

Commit

Permalink
Optimize Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Apr 6, 2022
1 parent a5ab255 commit 96a3883
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM node:lts-alpine3.10
FROM docker.io/library/node:lts-alpine

WORKDIR /usr/src/app

ENV \
NODE_ENV=production \
PORT=3000 \
HOST=0.0.0.0

CMD [ "npm", "start" ]

COPY package*.json ./

RUN npm i --only=production

# Bundle app source
COPY . .

ENV NODE_ENV=production
ENV PORT=3000

EXPOSE 3000
CMD [ "npm", "start" ]
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"name": "netlify-cms-github-oauth-provider",
"version": "1.0.0",
"engines": {
"node": ">=7.x"
},
"description": "netlify oauth github client sending token in form as netlify service itself",
"repository": "https://github.com/vencax/netlify-cms-github-oauth-provider",
"repository": "https://github.com/appuio/netlify-cms-github-oauth-provider",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down

0 comments on commit 96a3883

Please sign in to comment.