fix: docker script

This commit is contained in:
Innei
2022-02-24 21:53:44 +08:00
parent 2de994f053
commit ae4a660141

View File

@@ -1,12 +1,13 @@
FROM node:16-alpine as builder
WORKDIR /app
COPY . .
RUN apk add git make gcc g++ alpine-sdk python3 py3-pip python2
RUN apk add git make gcc g++ alpine-sdk python3 py3-pip python2 unzip
RUN git clone https://github.com/mx-space/assets.git --depth=1
RUN rm -rf assets/.git
RUN npm i -g pnpm
RUN pnpm install
RUN pnpm bundle
RUN node scripts/download-latest-admin-assets.js
FROM node:16-alpine
RUN apk add zip unzip mongodb-tools bash --no-cache