|
@@ -9,23 +9,22 @@ ENV MIX_ENV=${MIX_ENV:-prod} \
|
9
|
9
|
|
10
|
10
|
COPY docker/rootfs/ /
|
11
|
11
|
|
12
|
|
-RUN mkdir /tmp/koype-docker
|
|
12
|
+WORKDIR /opt/koype
|
|
13
|
+RUN mkdir -p /opt/koype/docker/scripts
|
13
|
14
|
COPY docker/rootfs /
|
14
|
15
|
COPY docker/scripts docker/scripts
|
15
|
16
|
|
16
|
|
-RUN sh /tmp/koype-docker/prepare.sh
|
17
|
|
-
|
18
|
|
-WORKDIR /opt/koype
|
|
17
|
+RUN sh /opt/koype/docker/scripts/prepare.sh
|
19
|
18
|
|
20
|
19
|
VOLUME /opt/koype/priv/repo/db
|
21
|
20
|
COPY package* ./
|
22
|
21
|
COPY mix* ./
|
23
|
|
-RUN sh /tmp/koype-docker/build.sh
|
|
22
|
+RUN sh /opt/koype/docker/scripts/build.sh
|
24
|
23
|
|
25
|
24
|
COPY . /opt/koype/
|
26
|
25
|
|
27
|
|
-RUN sh /tmp/koype-docker/build-post.sh
|
28
|
|
-RUN sh /tmp/koype-docker/cleanup.sh
|
|
26
|
+RUN sh /opt/koype/docker/scripts/build-post.sh
|
|
27
|
+RUN sh /opt/koype/docker/scripts/cleanup.sh
|
29
|
28
|
|
30
|
29
|
SHELL ["/bin/bash"]
|
31
|
|
-CMD ["/tmp/koype-docker/entrypoint.sh"]
|
|
30
|
+CMD ["/opt/koype/docker/scripts/entrypoint.sh"]
|