workbench
workbench copied to clipboard
Build release in Dockerfile
I had a look at the Dockerfile and I suggest using mix release instead of copying everything and building. I can do it, tell me if that's interesting you.
I also suggest publishing a version to hub.docker.com for ARM and x86.
Heyo @steffenix 👋
The current docker + compose setup is targeted at development but I think it's a good call to have a prod one also and use mix release
. Do you mind creating a PR?
What's your thoughts on:
- Rename the current
Dockerfile
toDockerfile.dev
- Create a new
Dockerfile
the builds the app withmix release
- Use
Dockerfile.dev
in the build context ofdocker-compose.override.yml
- Use
Dockerfile
in the basedocker-compose.yml
@steffenix I made some improvements to the docker setup in https://github.com/fremantle-industries/workbench/commit/e5894cdd73e259045bfedbeb81758c2b101b9165
The second layer could now build using mix release
I have put this on pause but I have pushed and opened a PR it's WIP, I have some issues with the JS assets.
https://github.com/fremantle-industries/workbench/pull/169