fix: docker file

This commit is contained in:
Junseo Park 2021-02-25 15:37:21 +09:00
parent 50bd98d91e
commit 0288c97e3b
3 changed files with 3 additions and 3 deletions

View File

@ -40,4 +40,5 @@ RUN yarn build
RUN yarn build
# Running the app
CMD './startup.sh'
RUN chmod +x /usr/src/app/startup.sh
CMD yarn start

View File

@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"start": "next start & (sleep 1; wget http://localhost:3000/api -O /dev/null)",
"lint": "eslint --ext ts,tsx .",
"lint:fix": "eslint --ext ts,tsx . --fix",
"test": "jest",

View File

@ -1 +0,0 @@
yarn start & (sleep 1; wget http://localhost:3000/api -O /dev/null)