Skip to content

Commit 135cc71

Browse files
committed
place the .env file in the right directory
1 parent c69b244 commit 135cc71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

other/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \
5454
# Finally, build the production image with minimal footprint
5555
FROM base
5656

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-
6157
ENV FLY="true"
6258
ENV LITEFS_DIR="/litefs/data"
6359
ENV DATABASE_FILENAME="sqlite.db"
@@ -76,6 +72,10 @@ RUN echo "#!/bin/sh\nset -x\nsqlite3 \$DATABASE_URL" > /usr/local/bin/database-c
7672

7773
WORKDIR /myapp
7874

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+
7979
COPY --from=production-deps /myapp/node_modules /myapp/node_modules
8080
COPY --from=build /myapp/node_modules/.prisma /myapp/node_modules/.prisma
8181

0 commit comments

Comments
 (0)