Skip to content

Commit

Permalink
fix: move discord-bot RUNTIME_ENV to the last stage
Browse files Browse the repository at this point in the history
  • Loading branch information
polimyl authored and alalonde committed Dec 27, 2021
1 parent 685fc91 commit 4f1e475
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/discord-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ ARG GRAPHQL_HOST

ENV GRAPHQL_URL https://$GRAPHQL_HOST.onrender.com/v1/graphql
ENV HASURA_GRAPHQL_ADMIN_SECRET metagame_secret
ENV RUNTIME_ENV docker

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

# Needed at runtime
ENV RUNTIME_ENV docker

# Copy necessary files into the stage
COPY --from=build /usr/src/app/package.json ./package.json
COPY --from=build /usr/src/app/node_modules ./node_modules
Expand Down

1 comment on commit 4f1e475

@vercel
Copy link

@vercel vercel bot commented on 4f1e475 Dec 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.