docker-redis - local tests
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
20
redis/Dockerfile
Normal file
20
redis/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# Use the official Redis image
|
||||
FROM redis:7.0-alpine
|
||||
|
||||
# Copy the Redis configuration file
|
||||
COPY redis.conf /usr/local/etc/redis/redis.conf
|
||||
|
||||
# Copy the entrypoint script
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
|
||||
# Make the entrypoint script executable
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
# Debugging step: List contents of /usr/local/bin
|
||||
RUN ls -l /usr/local/bin
|
||||
|
||||
# Expose Redis ports
|
||||
EXPOSE 6379 16379
|
||||
|
||||
# Set the entrypoint
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
Reference in New Issue
Block a user