Skip to content

Commit 4f1e475

Browse files
polimylalalonde
authored andcommitted
fix: move discord-bot RUNTIME_ENV to the last stage
1 parent 685fc91 commit 4f1e475

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/discord-bot/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ ARG GRAPHQL_HOST
2828

2929
ENV GRAPHQL_URL https://$GRAPHQL_HOST.onrender.com/v1/graphql
3030
ENV HASURA_GRAPHQL_ADMIN_SECRET metagame_secret
31-
ENV RUNTIME_ENV docker
3231

3332
# Build
3433
RUN yarn discord-bot build
@@ -40,6 +39,9 @@ RUN yarn install --pure-lockfile --production --ignore-scripts --prefer-offline
4039
FROM node:12-alpine as app
4140
WORKDIR /app
4241

42+
# Needed at runtime
43+
ENV RUNTIME_ENV docker
44+
4345
# Copy necessary files into the stage
4446
COPY --from=build /usr/src/app/package.json ./package.json
4547
COPY --from=build /usr/src/app/node_modules ./node_modules

0 commit comments

Comments
 (0)