File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \
54
54
# Finally, build the production image with minimal footprint
55
55
FROM base
56
56
57
+ # Generate random value and save it to .env file which will be loaded by dotenv
58
+ RUN INTERNAL_COMMAND_TOKEN=$(openssl rand -hex 32) && \
59
+ echo "INTERNAL_COMMAND_TOKEN=$INTERNAL_COMMAND_TOKEN" > .env
60
+
57
61
ENV FLY="true"
58
62
ENV LITEFS_DIR="/litefs/data"
59
63
ENV DATABASE_FILENAME="sqlite.db"
@@ -67,10 +71,6 @@ ENV NODE_ENV="production"
67
71
# For WAL support: https://github.com/prisma/prisma-engines/issues/4675#issuecomment-1914383246
68
72
ENV PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK = "1"
69
73
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
-
74
74
# add shortcut for connecting to database CLI
75
75
RUN echo "#!/bin/sh\n set -x\n sqlite3 \$ DATABASE_URL" > /usr/local/bin/database-cli && chmod +x /usr/local/bin/database-cli
76
76
You can’t perform that action at this time.
0 commit comments