From a490cfe364a242b1e9993225758ea6e61369e363 Mon Sep 17 00:00:00 2001
From: startxfr <clarue@startx.fr>
Date: Sat, 28 Nov 2015 23:32:45 +0100
Subject: reshapping of memcache container

---
 Services/memcache/Dockerfile | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

(limited to 'Services/memcache/Dockerfile')

diff --git a/Services/memcache/Dockerfile b/Services/memcache/Dockerfile
index 6bc68fe..9b2b948 100644
--- a/Services/memcache/Dockerfile
+++ b/Services/memcache/Dockerfile
@@ -1,10 +1,15 @@
 FROM startx/fedora
 MAINTAINER Christophe LARUE <dev@startx.fr>
 
-RUN dnf -y install memcached memcached-selinux && yum clean all 
-COPY sx/* /sx/
-RUN chmod ug+rx /sx/memcache* 
+USER root
+RUN dnf -y install memcached && \
+    dnf clean all 
+ENV STARTUPLOG=/data/logs/memcache/startup.log \
+    LOG_PATH=/data/logs/memcache
+COPY *.sh /bin/
+RUN chmod 775 /bin/run.sh && \
+    mkdir -p $LOG_PATH && \
+    touch $STARTUPLOG
 
 EXPOSE 11211
-
-CMD ["/sx/memcache_run.sh"]
\ No newline at end of file
+CMD ["/bin/run.sh"]
\ No newline at end of file
-- 
cgit v1.2.3