Delete Dockerfile

This commit is contained in:
jonny 2022-05-22 18:01:49 +08:00 committed by GitHub
parent 0785234a3e
commit 1780ab7105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 25 deletions

View File

@ -1,25 +0,0 @@
FROM node:18-alpine as builder
COPY .. /app/
WORKDIR /app
ARG EIP=mrdoc.fun
RUN apk --no-cache add bash
RUN sed -i "s/localhost/$EIP/g" /app/docker/prod-sample.yaml
RUN cp -f /app/docker/prod-sample.yaml /app/config/prod.yaml
RUN bash build-output.sh
FROM node:18-alpine as prod
LABEL maintainer="www.mrdoc.fun"
ENV TZ=Asia/Shanghai
COPY . /app/docker/
COPY --from=builder /app/think/output/ /app/
WORKDIR /app
RUN set -x \
&& apk add --no-cache tzdata redis \
&& chmod +x /app/docker/start.sh \
&& npm i -g pm2 @nestjs/cli pnpm \
&& rm -rf /var/cache/apk/*
ENTRYPOINT sh /app/docker/start.sh