Skip to content

Commit

Permalink
added getkeys instead of using action supplied env file
Browse files Browse the repository at this point in the history
  • Loading branch information
robgruen committed Nov 20, 2024
1 parent 1063ccb commit 5464941
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ WORKDIR /usr/src/app
RUN pnpm install --frozen-lockfile
RUN pnpm run -r build
RUN pnpm deploy --filter=agent-api --prod /prod/api
RUN pnpm deploy --filter=tools-scripts --prod /prod/tools
#RUN pnpm deploy --filter=cli --prod /prod/cli

FROM base AS api
# environment file
COPY --from=build /usr/src/app/.env /prod/api/
## environment file
#COPY --from=build /usr/src/app/.env /prod/api/
# api bits
COPY --from=build /prod/api/ /prod/api/
# rendering bits
Expand All @@ -35,6 +36,7 @@ EXPOSE 80:3000

#setup start actions
RUN echo az login --identity >> start.sh
RUN echo node ../tools/scripts/getKeys.mjs >> start.sh
RUN echo pnpm start >> start.sh

#azure login, then start node application
Expand Down

0 comments on commit 5464941

Please sign in to comment.