Update Dockerfile
Browse files- Dockerfile +6 -7
Dockerfile
CHANGED
@@ -1,12 +1,11 @@
|
|
1 |
-
# Use the official
|
2 |
-
FROM
|
3 |
|
4 |
-
#
|
5 |
-
RUN
|
6 |
|
7 |
# Expose the default Redis port
|
8 |
EXPOSE 6379
|
9 |
|
10 |
-
# Run the Redis server
|
11 |
-
CMD ["
|
12 |
-
CMD ["redis-server"]
|
|
|
1 |
+
# Use the official Redis image as a base
|
2 |
+
FROM redis
|
3 |
|
4 |
+
# Set the overcommit memory to 1
|
5 |
+
RUN sysctl -w vm.overcommit_memory=1
|
6 |
|
7 |
# Expose the default Redis port
|
8 |
EXPOSE 6379
|
9 |
|
10 |
+
# Run the Redis server with the --no-thp option
|
11 |
+
CMD ["redis-server", "--no-thp"]
|
|