-
Notifications
You must be signed in to change notification settings - Fork 26
docker files added #46
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
stnguyen90
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting this error trying to run the container:
$ docker compose up
[+] Running 1/0
⠿ Container appwrite-hacktoberfest-react-app-1 Created 0.0s
Attaching to appwrite-hacktoberfest-react-app-1
appwrite-hacktoberfest-react-app-1 |
appwrite-hacktoberfest-react-app-1 | > landingpage-2021-appwrite@0.0.1 dev
appwrite-hacktoberfest-react-app-1 | > concurrently "npm run dev:only" "npm run tailwind:watch"
appwrite-hacktoberfest-react-app-1 |
appwrite-hacktoberfest-react-app-1 | [1]
appwrite-hacktoberfest-react-app-1 | [1] > landingpage-2021-appwrite@0.0.1 tailwind:watch
appwrite-hacktoberfest-react-app-1 | [1] > cross-env TAILWIND_MODE=watch cross-env NODE_ENV=development postcss src/styles/tailwind.css -o src/styles/tailwind-output.css -w
appwrite-hacktoberfest-react-app-1 | [1]
appwrite-hacktoberfest-react-app-1 | [0]
appwrite-hacktoberfest-react-app-1 | [0] > landingpage-2021-appwrite@0.0.1 dev:only
appwrite-hacktoberfest-react-app-1 | [0] > svelte-kit dev
appwrite-hacktoberfest-react-app-1 | [0]
appwrite-hacktoberfest-react-app-1 | [0] > spawn Unknown system error -8
appwrite-hacktoberfest-react-app-1 | [0] Error: spawn Unknown system error -8
appwrite-hacktoberfest-react-app-1 | [0] at ChildProcess.spawn (node:internal/child_process:413:11)
appwrite-hacktoberfest-react-app-1 | [0] at Object.spawn (node:child_process:743:9)
appwrite-hacktoberfest-react-app-1 | [0] at ensureServiceIsRunning (/app/node_modules/esbuild/lib/main.js:1766:29)
appwrite-hacktoberfest-react-app-1 | [0] at Object.build (/app/node_modules/esbuild/lib/main.js:1658:26)
appwrite-hacktoberfest-react-app-1 | [0] at /app/node_modules/vite/dist/node/chunks/dep-63d4bd14.js:50441:54
appwrite-hacktoberfest-react-app-1 | [0] at Array.map (<anonymous>)
appwrite-hacktoberfest-react-app-1 | [0] at scanImports (/app/node_modules/vite/dist/node/chunks/dep-63d4bd14.js:50441:31)
appwrite-hacktoberfest-react-app-1 | [0] at async optimizeDeps (/app/node_modules/vite/dist/node/chunks/dep-63d4bd14.js:71611:30)
appwrite-hacktoberfest-react-app-1 | [0] at async runOptimize (/app/node_modules/vite/dist/node/chunks/dep-63d4bd14.js:75473:48)
appwrite-hacktoberfest-react-app-1 | [0] at async Object.createServer (/app/node_modules/vite/dist/node/chunks/dep-63d4bd14.js:75502:9)
appwrite-hacktoberfest-react-app-1 | [0] file:///app/node_modules/@sveltejs/kit/dist/chunks/index.js:3355
appwrite-hacktoberfest-react-app-1 | [0] throw new Error('Cannot close server before it is initialized');
| build: | ||
| context: ./ | ||
| dockerfile: Dockerfile | ||
| image: app-write |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appwrite is spelled wrong.
| context: ./ | ||
| dockerfile: Dockerfile | ||
| image: app-write | ||
| stdin_open: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
| networks: | ||
| app: | ||
| driver: bridge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be the default? Why do we need to add this?
| @@ -0,0 +1,20 @@ | |||
| version: '3' | |||
| services: | |||
| react-app: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't a react app
|
|
||
| COPY . . | ||
|
|
||
| CMD ["npm","run","dev","-- --open"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is the --open option needed?
| # if facing error while building image, paste there two command in terminal. | ||
|
|
||
| # export DOCKER_BUILDKIT=0 | ||
| #export COMPOSE_DOCKER_CLI_BUILD=0 No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's important to be consistent:
| #export COMPOSE_DOCKER_CLI_BUILD=0 | |
| # export COMPOSE_DOCKER_CLI_BUILD=0 |
| - app | ||
| volumes: | ||
| - ./src:/app/src | ||
| - ./app/node_modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This didn't work.
|
Thank you so much for the PR 🤩. We're adding the |
|
Closing stale PR |


What does this PR do?
Containerizes the website
(Provide a description of what this PR does.)
Related PRs and Issues
Have you read the Contributing Guidelines on issues?
yes