Skip to content

Commit c2e4db5

Browse files
committed
Added CURL to dockerfile
1 parent abacbaa commit c2e4db5

8 files changed

Lines changed: 37 additions & 30 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ RUN mix release
7171
FROM ${RUNNER_IMAGE} AS final
7272

7373
RUN apt-get update \
74-
&& apt-get install -y --no-install-recommends libstdc++6 openssl libncurses6 locales ca-certificates \
74+
&& apt-get install -y --no-install-recommends libstdc++6 openssl libncurses6 locales ca-certificates curl \
7575
&& rm -rf /var/lib/apt/lists/*
7676

7777
# Set the locale

lib/ftpdb/DB.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -992,10 +992,11 @@ defmodule Ftpdb.DB do
992992
end
993993

994994
def true_random() do
995-
{:ok, %{body: body}} = Supabase.PostgREST.rpc(client(), "get_random_project", %{})
996-
|> Supabase.PostgREST.single()
997-
|> Supabase.PostgREST.execute()
995+
{:ok, %{body: body}} =
996+
Supabase.PostgREST.rpc(client(), "get_random_project", %{})
997+
|> Supabase.PostgREST.single()
998+
|> Supabase.PostgREST.execute()
998999

999-
body
1000+
body
10001001
end
10011002
end

lib/ftpdb_web/controllers/page_html/credits.html.heex

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<Layouts.app flash={@flash}>
22
<.navbar current_section="credits" />
3-
4-
<!-- ═══ MAIN ═══ -->
3+
4+
<!-- ═══ MAIN ═══ -->
55
<main>
66
<div class="container">
77
<!-- ── CREDITS SECTION ── -->
88
<section class="credits-section fade-up">
99
<h1 class="credits-title">Credits</h1>
10-
10+
1111
<div class="credits-grid">
1212
<!-- Credit card 1 - User 3196 -->
1313
<a href="/user/3196" class="credit-card credit-card-link" id="credit-3196">
@@ -19,30 +19,34 @@
1919
<div class="credit-contribution">Epic favicon & logo</div>
2020
</div>
2121
</a>
22-
23-
<!-- Credit card 2 - User 9729 -->
22+
23+
<!-- Credit card 2 - User 9729 -->
2424
<a href="/user/9729" class="credit-card credit-card-link" id="credit-9729">
2525
<div class="credit-avatar">
2626
<div class="credit-avatar-circle"></div>
2727
</div>
2828
<div class="credit-info">
2929
<div class="credit-name">Loading...</div>
30-
<div class="credit-contribution">Helps for identifying flaws & brainstorming solutions for /random endpoints</div>
30+
<div class="credit-contribution">
31+
Helps for identifying flaws & brainstorming solutions for /random endpoints
32+
</div>
3133
</div>
3234
</a>
33-
34-
<!-- Credit card 3 - User 7434 -->
35+
36+
<!-- Credit card 3 - User 7434 -->
3537
<a href="/user/7434" class="credit-card credit-card-link" id="credit-7434">
3638
<div class="credit-avatar">
3739
<div class="credit-avatar-circle"></div>
3840
</div>
3941
<div class="credit-info">
4042
<div class="credit-name">Loading...</div>
41-
<div class="credit-contribution">Asking nicely and I needed to fill these up before shipping</div>
43+
<div class="credit-contribution">
44+
Asking nicely and I needed to fill these up before shipping
45+
</div>
4246
</div>
4347
</a>
44-
45-
<!-- Credit card 4 - User 2809 -->
48+
49+
<!-- Credit card 4 - User 2809 -->
4650
<a href="/user/2809" class="credit-card credit-card-link" id="credit-2809">
4751
<div class="credit-avatar">
4852
<div class="credit-avatar-circle"></div>
@@ -57,8 +61,6 @@
5761
</div>
5862
</main>
5963

60-
61-
6264
<script>
6365
// Load user information for credits
6466
async function loadUserInfo() {
@@ -100,8 +102,8 @@
100102

101103
// Load user info when page loads
102104
document.addEventListener('DOMContentLoaded', loadUserInfo);
103-
105+
104106
// Set footer year
105107
document.getElementById('footerYear').textContent = new Date().getFullYear();
106108
</script>
107-
</Layouts.app>
109+
</Layouts.app>

lib/ftpdb_web/controllers/page_html/home.html.heex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,4 @@
10381038
</div>
10391039
<!-- /container -->
10401040
</main>
1041-
1042-
10431041
</Layouts.app>

lib/ftpdb_web/controllers/page_html/project.html.heex

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@
3737
</div>
3838

3939
<div class="hero-cta-group">
40-
<a id="heroCta" class="hero-cta" href="#" target="_blank" rel="noopener noreferrer" style="display: none;">
40+
<a
41+
id="heroCta"
42+
class="hero-cta"
43+
href="#"
44+
target="_blank"
45+
rel="noopener noreferrer"
46+
style="display: none;"
47+
>
4148
<svg
4249
width="14"
4350
height="14"
@@ -94,7 +101,11 @@
94101
</div>
95102

96103
<%!-- ── DESCRIPTION ── --%>
97-
<div class="project-description-section fade-up delay-1" id="descriptionSection" style="display: none;">
104+
<div
105+
class="project-description-section fade-up delay-1"
106+
id="descriptionSection"
107+
style="display: none;"
108+
>
98109
<div class="project-page">
99110
<h2 class="devlog-title">About this project</h2>
100111
<div class="project-description-content" id="projectDescription"></div>
@@ -114,6 +125,4 @@
114125
</div>
115126
</div>
116127
</main>
117-
118-
119128
</Layouts.app>

lib/ftpdb_web/controllers/page_html/suggestions.html.heex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,4 @@
8383
</div>
8484
</section>
8585
</div>
86-
87-
8886
</Layouts.app>

lib/ftpdb_web/controllers/page_html/user.html.heex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,4 @@
2929
</section>
3030
</div>
3131
</main>
32-
33-
3432
</Layouts.app>

mix.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"bandit": {:hex, :bandit, "1.10.2", "d15ea32eb853b5b42b965b24221eb045462b2ba9aff9a0bda71157c06338cbff", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.18", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "27b2a61b647914b1726c2ced3601473be5f7aa6bb468564a688646a689b3ee45"},
33
"cachex": {:hex, :cachex, "4.1.1", "574c5cd28473db313a0a76aac8c945fe44191659538ca6a1e8946ec300b1a19f", [:mix], [{:eternal, "~> 1.2", [hex: :eternal, repo: "hexpm", optional: false]}, {:ex_hash_ring, "~> 6.0", [hex: :ex_hash_ring, repo: "hexpm", optional: false]}, {:jumper, "~> 1.0", [hex: :jumper, repo: "hexpm", optional: false]}, {:sleeplocks, "~> 1.1", [hex: :sleeplocks, repo: "hexpm", optional: false]}, {:unsafe, "~> 1.0", [hex: :unsafe, repo: "hexpm", optional: false]}], "hexpm", "d6b7449ff98d6bb92dda58bd4fc3189cae9f99e7042054d669596f56dc503cd8"},
44
"cc_precompiler": {:hex, :cc_precompiler, "0.1.11", "8c844d0b9fb98a3edea067f94f616b3f6b29b959b6b3bf25fee94ffe34364768", [:mix], [{:elixir_make, "~> 0.7", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "3427232caf0835f94680e5bcf082408a70b48ad68a5f5c0b02a3bea9f3a075b9"},
5+
"cors_plug": {:hex, :cors_plug, "3.0.3", "7c3ac52b39624bc616db2e937c282f3f623f25f8d550068b6710e58d04a0e330", [:mix], [{:plug, "~> 1.13", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "3f2d759e8c272ed3835fab2ef11b46bddab8c1ab9528167bd463b6452edf830d"},
56
"decimal": {:hex, :decimal, "2.3.0", "3ad6255aa77b4a3c4f818171b12d237500e63525c2fd056699967a3e7ea20f62", [:mix], [], "hexpm", "a4d66355cb29cb47c3cf30e71329e58361cfcb37c34235ef3bf1d7bf3773aeac"},
67
"dns_cluster": {:hex, :dns_cluster, "0.2.0", "aa8eb46e3bd0326bd67b84790c561733b25c5ba2fe3c7e36f28e88f384ebcb33", [:mix], [], "hexpm", "ba6f1893411c69c01b9e8e8f772062535a4cf70f3f35bcc964a324078d8c8240"},
78
"ecto": {:hex, :ecto, "3.13.5", "9d4a69700183f33bf97208294768e561f5c7f1ecf417e0fa1006e4a91713a834", [:mix], [{:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "df9efebf70cf94142739ba357499661ef5dbb559ef902b68ea1f3c1fabce36de"},

0 commit comments

Comments
 (0)