Skip to content

Commit

Permalink
Fix Dockerfile and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
trust2065 committed Jul 31, 2023
1 parent e5afc6b commit 69987fd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
1 change: 1 addition & 0 deletions frontend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
20 changes: 20 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:18-alpine
ENV NODE_ENV=production

RUN npm install -g yarn --force

RUN npm install -g typescript

COPY . ./app

WORKDIR /app

RUN yarn install

RUN yarn run build

RUN yarn global add serve

EXPOSE 5000

CMD ["serve", "-s", "dist", "-l", "5000"]
14 changes: 7 additions & 7 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"sass": "^1.63.6",
"tailwindcss": "^3.3.2",
"vite-tsconfig-paths": "^4.2.0",
"web3": "1.6.1"
},
"devDependencies": {
"web3": "1.6.1",
"vite": "^4.3.9",
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react": "^4.0.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.38.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"typescript": "^5.0.2",
"vite": "^4.3.9"
"typescript": "^5.0.2"
}
}
}

0 comments on commit 69987fd

Please sign in to comment.