summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..e7c6875
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+FROM fedora:28
+MAINTAINER http://fedoraproject.org/wiki/Cloud
+
+RUN dnf -y update && dnf clean all
+RUN dnf -y install memcached \
+&& dnf clean all
+
+EXPOSE 11211
+
+# Simple startup script to avoid some issues observed with container
+# restart
+ADD run-memcached.sh /run-memcached.sh
+RUN chmod -v +x /run-memcached.sh
+
+VOLUME ["/etc/memcached.d", "/var/run/memcached"]
+CMD ["/run-memcached.sh"]