aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorLibravatar Michal Kostewicz <m.kostewicz84@gmail.com>2021-02-05 20:43:13 +0100
committerLibravatar Michal Kostewicz <m.kostewicz84@gmail.com>2021-02-07 10:20:38 +0100
commit7e55e4bf83321c770645e9657589a620335fa029 (patch)
tree494f2b77a930fd68d61e5e536e469141562606f0 /docker/Dockerfile
parentMoved getferdi/server-docker into getferdi/server repository. (diff)
downloadferdium-server-7e55e4bf83321c770645e9657589a620335fa029.tar.gz
ferdium-server-7e55e4bf83321c770645e9657589a620335fa029.tar.zst
ferdium-server-7e55e4bf83321c770645e9657589a620335fa029.zip
Modifying Dockerfile so that it can use the current application code to build the image. Update instructions for building image in README.md
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 2b165f5..a561509 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -59,6 +59,8 @@ RUN \
59 cd / && \ 59 cd / && \
60 rm -Rf "node-v$NODE_VERSION" && \ 60 rm -Rf "node-v$NODE_VERSION" && \
61 rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt 61 rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt
62
63COPY . /app
62 64
63RUN \ 65RUN \
64 apk add --no-cache --virtual .build-deps-ferdi \ 66 apk add --no-cache --virtual .build-deps-ferdi \
@@ -69,9 +71,6 @@ RUN \
69 npm config set unsafe-perm true && \ 71 npm config set unsafe-perm true && \
70 npm install -g npm@latest && \ 72 npm install -g npm@latest && \
71 find /usr/lib/node_modules/npm -name test -o -name .bin -type d | xargs rm -rf && \ 73 find /usr/lib/node_modules/npm -name test -o -name .bin -type d | xargs rm -rf && \
72 echo "**** install ferdi server ****" && \
73 mkdir -p /ferdi && \
74 curl -o /ferdi/ferdi.tar.gz -L "https://github.com/getferdi/server/archive/master.tar.gz" && \
75 echo "**** cleanup ****" && \ 74 echo "**** cleanup ****" && \
76 apk del .build-deps-ferdi && \ 75 apk del .build-deps-ferdi && \
77 rm -rf \ 76 rm -rf \
@@ -88,7 +87,7 @@ RUN \
88 /usr/lib/node_modules/npm/html \ 87 /usr/lib/node_modules/npm/html \
89 /usr/lib/node_modules/npm/scripts 88 /usr/lib/node_modules/npm/scripts
90 89
91COPY root/ / 90COPY docker/root/ /
92 91
93USER root 92USER root
94 93