File tree Expand file tree Collapse file tree 2 files changed +23
-26
lines changed Expand file tree Collapse file tree 2 files changed +23
-26
lines changed Original file line number Diff line number Diff line change 33#
44# https://hub.docker.com/r/hexpm/elixir/tags?page=1&name=ubuntu
55# https://hub.docker.com/_/ubuntu?tab=tags
6- ARG ELIXIR_VERSION=1.18.4
7- ARG OTP_VERSION=26.2.5.11
8- ARG DEBIAN_VERSION=bookworm-20241223-slim
9-
10- ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}"
11- ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
6+ ARG BUILDER_IMAGE="elixir:1.18"
7+ ARG RUNNER_IMAGE="elixir:1.18"
128
139FROM ${BUILDER_IMAGE} as builder
1410
@@ -59,8 +55,8 @@ RUN mix compile
5955# Changes to config/runtime.exs don't require recompiling the code
6056COPY config/runtime.exs config/
6157
62- # Compile assets
63- RUN mix assets.deploy
58+ # Compile assets (skip esbuild since we already ran node build.js)
59+ RUN mix tailwind portfolio --minify && mix phx.digest
6460
6561# Build the release
6662RUN mix release
@@ -99,4 +95,4 @@ USER nobody
9995# RUN chmod +x /tini
10096# ENTRYPOINT ["/tini", "--"]
10197
102- CMD ["/app/bin/server " ]
98+ CMD ["/app/bin/portfolio" , "start " ]
Original file line number Diff line number Diff line change 33# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
44#
55
6- app = ' portfolio'
7- primary_region = ' ord '
6+ app = ' stephenloggedon- portfolio'
7+ primary_region = ' iad '
88kill_signal = ' SIGTERM'
99
1010[build ]
1111
1212[env ]
13- PHX_HOST = ' stephenloggedon.com'
14- PORT = ' 8080'
13+ PHX_HOST = ' stephenloggedon.com'
14+ PORT = ' 8080'
15+ PHX_SERVER = ' true'
1516
1617[http_service ]
17- internal_port = 8080
18- force_https = true
19- auto_stop_machines = ' stop'
20- auto_start_machines = true
21- min_machines_running = 0
22- processes = [' app' ]
18+ internal_port = 8080
19+ force_https = true
20+ auto_stop_machines = ' stop'
21+ auto_start_machines = true
22+ min_machines_running = 1
23+ processes = [' app' ]
2324
24- [http_service .concurrency ]
25- type = ' connections'
26- hard_limit = 1000
27- soft_limit = 1000
25+ [http_service .concurrency ]
26+ type = ' connections'
27+ hard_limit = 1000
28+ soft_limit = 1000
2829
2930[[vm ]]
30- memory = ' 1gb'
31- cpu_kind = ' shared'
32- cpus = 1
31+ memory = ' 1gb'
32+ cpu_kind = ' shared'
33+ cpus = 1
You can’t perform that action at this time.
0 commit comments