Browse Source

Opt for more Koype-ish stuff.

jackyalcine 5 months ago
parent
commit
62d5766327
Signed by: Jacky Alciné <yo@jacky.wtf> GPG Key ID: 537A4F904B15268D
3 changed files with 3 additions and 8 deletions
  1. 2
    4
      Dockerfile
  2. 0
    3
      docker/scripts/post-deploy.sh
  3. 1
    1
      web/endpoint.ex

+ 2
- 4
Dockerfile View File

@@ -7,10 +7,9 @@ ENV MIX_ENV=${MIX_ENV:-prod} \
7 7
   TZ=Etc/UTC \
8 8
   REPLACE_OS_VARS=true
9 9
 
10
-ADD docker/rootfs/ /
11
-
12 10
 RUN mkdir /tmp/fortress-docker
13
-ADD docker/scripts/ /tmp/fortress-docker/
11
+COPY docker/rootfs/ /
12
+COPY docker/scripts/ /tmp/fortress-docker/
14 13
 
15 14
 RUN sh /tmp/fortress-docker/prepare.sh
16 15
 
@@ -19,7 +18,6 @@ WORKDIR /opt/fortress
19 18
 COPY . /opt/fortress/
20 19
 RUN sh /tmp/fortress-docker/build.sh
21 20
 
22
-VOLUME /opt/fortress/priv/repo/db
23 21
 RUN sh /tmp/fortress-docker/cleanup.sh
24 22
 
25 23
 SHELL ["/bin/bash"]

+ 0
- 3
docker/scripts/post-deploy.sh View File

@@ -1,3 +0,0 @@
1
-#!/bin/sh
2
-
3
-cd /opt/fortress || exit 10

+ 1
- 1
web/endpoint.ex View File

@@ -5,7 +5,7 @@ defmodule Fortress.Web.Endpoint do
5 5
 
6 6
   plug(Logster.Plugs.Logger)
7 7
 
8
-  plug(Plug.Static, at: "/", from: :fortress, gzip: true)
8
+  plug(Plug.Static, at: "/assets", from: :fortress, gzip: true)
9 9
 
10 10
   if code_reloading? do
11 11
     socket("/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket)

Loading…
Cancel
Save