mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-21 23:53:52 +00:00
Update dockerfile for pnpm
This commit is contained in:
parent
9821d69cdf
commit
fed52a6240
12
Dockerfile
12
Dockerfile
|
@ -1,19 +1,19 @@
|
|||
FROM node:22.2.0-alpine as ui-builder
|
||||
|
||||
RUN mkdir /app
|
||||
RUN mkdir /app \
|
||||
&& corepack enable
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json yarn.lock .yarnrc.yml /app/
|
||||
COPY .yarn/releases/ /app/.yarn/releases/
|
||||
COPY package.json pnpm-lock.yaml /app/
|
||||
|
||||
RUN apk add --update --no-cache g++ make\
|
||||
&& yarn install\
|
||||
RUN apk add --update --no-cache g++ make git \
|
||||
&& pnpm install --frozen-lockfile \
|
||||
&& apk del g++ make
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN yarn build
|
||||
RUN pnpm run build
|
||||
|
||||
FROM nginx:1.26.0-alpine
|
||||
COPY --from=ui-builder /app/dist /etc/nginx/html
|
||||
|
|
Loading…
Reference in New Issue
Block a user