Build with only one docker file

I haved copy dockerfile from /packages/twenty/docker/twenty/Dockerfile to root and build image from it. When I start image, the container log that can't read the env. I already have and .env.example at root like this SERVER_URL="http://localhost:3020" REACT_APP_SERVER_BASE_URL="http://localhost:3020" PG_DATABASE_HOST="http://localhost" PG_DATABASE_PORT=5432 ACCESS_TOKEN_SECRET=V/fFtZq197UdE+5VeiLtvyFsba3ZhwhG6NZDjVKA/JA= LOGIN_TOKEN_SECRET=zU1VxWkNxzd2yqEvlR0STy3G4uUE2KqAWEuBna8kMoo= REFRESH_TOKEN_SECRET=DZAs7G7q3WEf8dYuqlnnl5A1gZAdsdsaEmFs26dLtPM= FILE_TOKEN_SECRET=ViQpyQvRpiCUEJ+WXuOtxfKRjQsBgyyrOITFgPgyl8A= SIGN_IN_PREFILLED="false" STORAGE_TYPE="local" PG_DATABASE_URL="postgres://postgres:abc@123@localhost:5432/twenty" REDIS_HOST="redis" REDIS_PORT="6379"
No description
2 Replies
charles
charles2mo ago
HI @hoang2601, what command are you using to build your container and from what folder? When we build them on our side we build them from twenty root:docker build -f ./packages/twenty-docker/twenty/Dockerfile
rosscdh
rosscdh2mo ago
docker-build:
docker build -t twentycrm/twenty:local -f packages/twenty-docker/twenty/Dockerfile .
docker-build:
docker build -t twentycrm/twenty:local -f packages/twenty-docker/twenty/Dockerfile .
works for me
Want results from more Discord servers?
Add your server