New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a Development dockerfile #650
base: master
Are you sure you want to change the base?
Conversation
Modelled on the Production dockerfile, but simplifies the build process. We mount the source code from the host machine and build it, then run the servers in development mode, using Air to get live-reloading in Go. Test photos are from thiscatdoesnotexist.com.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #650 +/- ##
=======================================
Coverage 42.46% 42.46%
=======================================
Files 146 146
Lines 4764 4764
Branches 633 633
=======================================
Hits 2023 2023
Misses 2549 2549
Partials 192 192
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Sorry for the late reply I get the following error when running the docker-compose file, after
I'm using an intel macbook. I've tried both with and without Could have something to do with this line in the Dockerfile? ENV COMPILER_ARCH aarch64-linux-gnu The UI loads as expected though. |
Aha, yeah, I haven't tried this on intel. I didn't fully understand the cross-compiling setup, so I've probably broken something in this. I'll fish out an intel machine and have a look when I get a chance. |
Should all the env variables be added to the dockerfile (both development and example production) for quick reference, even if they are just commented out? |
Modelled on the Production dockerfile, but simplifies the build process.
We mount the source code from the host machine and build it, then run
the servers in development mode, using Air to get live-reloading in Go.
Test photos are from thiscatdoesnotexist.com.