neiam
/apollos_crib
It's Apollo's Crib
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
working dockerfile and elixir release too
3e6fdf5 · gmorell · 2022-07-18 03:05
Files changed
modified
Dockerfile
+3
−2
@@ -14,9 +14,10 @@ RUN mix do deps.get, compile
| 14 | 14 | RUN npm install -g npm@6.14.4 |
| 15 | 15 | RUN cd ${phoenix_subdir}/apps/room_sanctum/assets \ |
| 16 | 16 | && npm ci \ |
| 17 | − && cd ../../../ \ | |
| 17 | + && cd ../ \ | |
| 18 | 18 | && mix phx.digest \ |
| 19 | − && mix assets.deploy | |
| 19 | + && mix assets.deploy \ | |
| 20 | + && cd ../../ | |
| 20 | 21 | RUN mix release ${app_name} \ |
| 21 | 22 | && mv _build/${build_env}/rel/${app_name} /opt/release \ |
| 22 | 23 | && mv /opt/release/bin/${app_name} /opt/release/bin/start_server |
modified
mix.exs
+10
−1
@@ -6,7 +6,16 @@ defmodule ApollosCrib.MixProject do
| 6 | 6 | apps_path: "apps", |
| 7 | 7 | version: "0.1.0", |
| 8 | 8 | start_permanent: Mix.env() == :prod, |
| 9 | − deps: deps() | |
| 9 | + deps: deps(), | |
| 10 | + releases: [ | |
| 11 | + apollos_crib: [ | |
| 12 | + include_erts: true, | |
| 13 | + include_executables_for: [:unix], | |
| 14 | + applications: [ | |
| 15 | + runtime_tools: :permanent | |
| 16 | + ] | |
| 17 | + ] | |
| 18 | + ] | |
| 10 | 19 | ] |
| 11 | 20 | end |
| 12 | 21 |
Parents: b558b3b