From 76a6b3f0a3f930bf76abe1fcb5fbe1ebb431e0fb Mon Sep 17 00:00:00 2001 From: DeepChirp <66902050+DeepChirp@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:34:24 +0800 Subject: [PATCH] chore(Dockerfile): Use Alpine image for smaller size (#761) --- 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"]