fix: move discord-bot RUNTIME_ENV to the last stage

This commit is contained in:
polimyl
2021-12-27 01:34:35 +01:00
committed by Alec LaLonde
parent 685fc91115
commit 4f1e47562c

View File

@@ -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
@@ -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