# Use an official Redis image as a parent image FROM redis:latest # Set the working directory to /data WORKDIR /data # Expose Redis port EXPOSE 6379 # Run Redis server as daemon #CMD ["redis-server", "--daemonize", "yes"] CMD ["redis-server", "--daemonize", "no"]