-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix docker image workflow failure (#753)
- Loading branch information
Showing
2 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,15 @@ FROM node:20 AS base | |
|
||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN npm install -g [email protected] | ||
RUN corepack enable | ||
RUN npm install -g corepack@latest | ||
RUN corepack enable pnpm | ||
RUN corepack install -g pnpm@latest | ||
|
||
# dependencies | ||
RUN apt-get update | ||
RUN apt-get install -y libsecret-1-0 | ||
RUN apt install -y gnome-keyring | ||
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash | ||
|
||
# Install dependencies required for Chrome/Puppeteer | ||
RUN apt-get update && apt-get install -y \ | ||
|
@@ -53,11 +60,6 @@ COPY --from=build /prod/tools/ /prod/tools/ | |
COPY --from=build /usr/src/app/packages/shell/out/ /prod/shell/out/ | ||
WORKDIR /prod/api | ||
|
||
# dependencies | ||
RUN apt-get update | ||
RUN apt install -y gnome-keyring | ||
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash | ||
|
||
######################################### BLOB STORAGE MOUNT ######################################### | ||
## blobfuse - https://github.com/Azure/azure-storage-fuse/tree/main | ||
## Uncomment the section below to use blobfuse to mount blob storage | ||
|
@@ -87,4 +89,4 @@ RUN echo node ../tools/scripts/getKeys.mjs >> start.sh | |
RUN echo pnpm start >> start.sh | ||
|
||
# run start script | ||
CMD bash start.sh | ||
CMD ["bash", "start.sh"] |