Browse Source

Dockerfile: copy config from sources directly

Alexis 'Horgix' Chotard 9 years ago
parent
commit
3a59f95922
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Dockerfile

+ 4 - 4
Dockerfile

@@ -18,8 +18,8 @@ RUN apk --update --update-cache upgrade \
 
 RUN wget ${TARBALL} \
     && tar xzf ${VERSION}.tar.gz \
-    && cd Radicale-${VERSION} && python3 setup.py install
+    && cd Radicale-${VERSION} && python3 setup.py install \
+    && mkdir -p /etc/radicale \
+    && cp config /etc/radicale/config
 
-COPY config /srv/radicale.conf
-
-CMD ["radicale", "-D", "-C", "/srv/radicale.conf"]
+CMD ["radicale", "-D", "-C", "/etc/radicale/config"]