File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,16 @@ ENV DATABASE_PATH="$LITEFS_DIR/$DATABASE_FILENAME"
61
61
ENV DATABASE_URL="file:$DATABASE_PATH"
62
62
ENV CACHE_DATABASE_FILENAME="cache.db"
63
63
ENV CACHE_DATABASE_PATH="$LITEFS_DIR/$CACHE_DATABASE_FILENAME"
64
- ENV INTERNAL_COMMAND_TOKEN=$(openssl rand -hex 32)
65
64
ENV INTERNAL_PORT="8080"
66
65
ENV PORT="8081"
67
66
ENV NODE_ENV="production"
68
67
# For WAL support: https://github.com/prisma/prisma-engines/issues/4675#issuecomment-1914383246
69
68
ENV PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK = "1"
70
69
70
+ # Generate random value and set it as environment variable
71
+ RUN INTERNAL_COMMAND_TOKEN=$(openssl rand -hex 32) && \
72
+ echo "INTERNAL_COMMAND_TOKEN=$INTERNAL_COMMAND_TOKEN" >> /etc/environment
73
+
71
74
# add shortcut for connecting to database CLI
72
75
RUN echo "#!/bin/sh\n set -x\n sqlite3 \$ DATABASE_URL" > /usr/local/bin/database-cli && chmod +x /usr/local/bin/database-cli
73
76
You can’t perform that action at this time.
0 commit comments