Skip to content

Commit

Permalink
sandbox dockerfile: use npm instead of yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus authored Jun 29, 2023
1 parent 46641a6 commit 32c8b83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/sandbox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ ARG TAG
RUN git clone --depth=1 --branch ${TAG} https://github.com/baking-bad/bcd.git /bcd

WORKDIR /bcd
RUN yarn
RUN npm i

COPY build/sandbox/env.production /bcd/.env.production
RUN export NODE_OPTIONS=--openssl-legacy-provider
RUN yarn build
RUN npm run build

FROM nginx:latest AS release
COPY build/sandbox/default.conf /etc/nginx/conf.d/default.conf
COPY build/sandbox/entrypoint.sh /
RUN chmod +x /entrypoint.sh
WORKDIR /usr/share/nginx/html/
COPY --from=build /bcd/dist ./
ENTRYPOINT [ "/entrypoint.sh" ]
ENTRYPOINT [ "/entrypoint.sh" ]

0 comments on commit 32c8b83

Please sign in to comment.