mirror of
https://github.com/Kxsso/jcutmirror.git
synced 2026-02-09 01:16:58 +08:00
14 lines
405 B
Docker
14 lines
405 B
Docker
FROM node:18-bullseye
|
|
|
|
WORKDIR /app
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn config set registry 'https://registry.npmmirror.com/' && \
|
|
yarn config set sharp_binary_host https://npmmirror.com/mirrors/sharp && \
|
|
yarn config set sharp_libvips_binary_host https://npmmirror.com/mirrors/sharp-libvips && \
|
|
yarn install --frozen-lockfile
|
|
|
|
COPY . .
|
|
RUN yarn run build
|
|
CMD ["yarn", "run", "serve"]
|
|
|