summaryrefslogtreecommitdiffstats
path: root/Services/memcache/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Services/memcache/Dockerfile')
-rw-r--r--Services/memcache/Dockerfile15
1 files changed, 10 insertions, 5 deletions
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