Update dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM typesense/typesense:30.1
|
|
| 3 |
|
| 4 |
# Set environment variables
|
| 5 |
ENV TYPESENSE_DATA_DIR=/data
|
| 6 |
-
ENV TYPESENSE_API_KEY=
|
| 7 |
ENV TYPESENSE_API_PORT=7860
|
| 8 |
|
| 9 |
# Switch to root to create the directory and fix permissions
|
|
@@ -21,4 +21,4 @@ EXPOSE 7860
|
|
| 21 |
|
| 22 |
# Start Typesense
|
| 23 |
# Note: We must explicitly tell Typesense where the data-dir is in the command
|
| 24 |
-
CMD ["/opt/typesense-server", "--data-dir", "/data", "--api-port", "7860", "--
|
|
|
|
| 3 |
|
| 4 |
# Set environment variables
|
| 5 |
ENV TYPESENSE_DATA_DIR=/data
|
| 6 |
+
ENV TYPESENSE_API_KEY=
|
| 7 |
ENV TYPESENSE_API_PORT=7860
|
| 8 |
|
| 9 |
# Switch to root to create the directory and fix permissions
|
|
|
|
| 21 |
|
| 22 |
# Start Typesense
|
| 23 |
# Note: We must explicitly tell Typesense where the data-dir is in the command
|
| 24 |
+
CMD ["/opt/typesense-server", "--data-dir", "/data", "--api-port", "7860", "--enable-cors"]
|