From 0697e85f4393601bb7aa1298e1af18b7aba85e46 Mon Sep 17 00:00:00 2001 From: DeepChirp <1434323966@qq.com> Date: Sun, 13 Oct 2024 11:38:32 +0800 Subject: [PATCH] chore(Dockerfile): Use Alpine image for smaller size --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index aaa996691..2fc70330f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ ARG NODE_IMAGE=node FROM ${NODE_IMAGE}:lts AS build WORKDIR /app -ENV NODE_ENV production +ENV NODE_ENV=production RUN set -eux; \ npm install --production tkserver@latest; \ mkdir -p data -FROM ${NODE_IMAGE}:lts-buster-slim +FROM ${NODE_IMAGE}:lts-alpine WORKDIR /app -ENV NODE_ENV production +ENV NODE_ENV=production COPY --from=build /app . EXPOSE 8080 CMD ["/app/node_modules/.bin/tkserver"]