mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
fix: move discord-bot RUNTIME_ENV to the last stage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user