polypush135
Having issues with Phoenix's docs about containers and releases
I have stood up a very basic vanilla phoenix app in hopes to better learn about how I can deploy clusters,
https://github.com/joshchernoff/cluster_example
When reviewing the docs I found this example Dockerfile. Deploying with Releases — Phoenix v1.8.8
I copied said Dockerfile
https://github.com/joshchernoff/cluster_example/blob/main/Dockerfile
But I found that the copy command does not copy any files but also does not fail.
As we can see the command runs and does not error.
https://gist.github.com/joshchernoff/b3d1e82642a383135335a3ece2f12ae6#file-gistfile1-txt-L37
But when running ls the dir for /app/ we see there is no bin folder in the app dir.
https://gist.github.com/joshchernoff/b3d1e82642a383135335a3ece2f12ae6#file-gistfile1-txt-L57
Heres my docker info
On OSX 11.2.1
Marked As Solved
polypush135
Ah found it, in my compose I overwrote the app folder with my own app dir volume
thus it would remove the bin folder.
Lesson: Don’t mix your dev and prod docker compose apps.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










