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,10 +54,6 @@ 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
-
61
57
ENV FLY="true"
62
58
ENV LITEFS_DIR="/litefs/data"
63
59
ENV DATABASE_FILENAME="sqlite.db"
@@ -76,6 +72,10 @@ RUN echo "#!/bin/sh\nset -x\nsqlite3 \$DATABASE_URL" > /usr/local/bin/database-c
76
72
77
73
WORKDIR /myapp
78
74
75
+ # Generate random value and save it to .env file which will be loaded by dotenv
76
+ RUN INTERNAL_COMMAND_TOKEN=$(openssl rand -hex 32) && \
77
+ echo "INTERNAL_COMMAND_TOKEN=$INTERNAL_COMMAND_TOKEN" > .env
78
+
79
79
COPY --from=production-deps /myapp/node_modules /myapp/node_modules
80
80
COPY --from=build /myapp/node_modules/.prisma /myapp/node_modules/.prisma
81
81
You can’t perform that action at this time.
0 commit comments