From e5208d84e2e906d94ee456bb93fa81e61c04c032 Mon Sep 17 00:00:00 2001 From: Randy Date: Sun, 13 Oct 2024 21:02:35 +0800 Subject: [PATCH] remove dockerfile --- Dockerfile | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 820619ef..00000000 --- a/Dockerfile +++ /dev/null @@ -1,35 +0,0 @@ -FROM node:16-alpine3.15 as builder - -VOLUME [ "/data" ] - -ARG DB_TYPE=sqlite -ENV DB_TYPE=$DB_TYPE - -RUN apk add --no-cache python3 py3-pip make gcc g++ - -COPY . /app - -COPY package.json yarn.lock /app/ - -WORKDIR /app - -RUN npm install -g pnpm -RUN yarn install --frozen-lockfile && npx browserslist@latest --update-db -RUN npm run build:without-migrate - -FROM node:16-alpine3.15 as runner - -ENV NODE_ENV=production -ARG DB_TYPE=sqlite -ENV DB_TYPE=$DB_TYPE - -WORKDIR /app - -COPY --from=builder /app/node_modules ./node_modules -COPY --from=builder /app/public ./public -COPY --from=builder /app/.next ./.next -COPY . /app - -EXPOSE 3000/tcp - -CMD ["npm", "run", "start:with-migrate"]