From ab2a1b62de47471a08961addf09af20f402c508b Mon Sep 17 00:00:00 2001 From: Cody Rigney Date: Thu, 2 Mar 2023 11:05:41 -0500 Subject: [PATCH 1/3] Reduce final image size. --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9575ebae..569cea2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Start your image with a node base image -FROM node:18-alpine +FROM node:18-alpine as builder # Create an application directory RUN mkdir -p /app @@ -16,9 +16,8 @@ COPY ./public ./public # Install node packages, install serve, build the app, and remove dependencies at the end RUN npm install \ - && npm install -g serve \ - && npm run build \ - && rm -fr node_modules + && npm run build -# Start the app using serve command -CMD [ "serve", "-s", "build" ] \ No newline at end of file +# Use a slim nginx image to reduce our image size drastically +FROM nginx:alpine-slim +COPY --from=builder /app/build /usr/share/nginx/html \ No newline at end of file From 5a7cba663697d72db60249722d03d7e84d5ed1f9 Mon Sep 17 00:00:00 2001 From: Mariana Simon Date: Mon, 28 Jul 2025 15:04:31 -0600 Subject: [PATCH 2/3] Update Dockerfile to use node:22-alpine --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ea09d8c7..219a0737 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Start your image with a node base image -FROM node:18-alpine as builder +FROM node:22-alpine AS builder # The /app directory should act as the main application directory WORKDIR /app From 123caa81a9f8e047179dd470b544016a1b0fa65a Mon Sep 17 00:00:00 2001 From: disnikkaahere267-boop Date: Thu, 18 Sep 2025 02:20:55 +1200 Subject: [PATCH 3/3] Create .DS_Store --- .DS_Store | Bin 0 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ce3a2137637b481787ff4973ad1dac369b3086f6 GIT binary patch literal 6148 zcmeHKO>fgc5S>jzYqx-c1X3?ZD{&1WA*d4KVnTB00SygbBRe67D3Z_c zANUJg`6c`pPVn|4h&b&PBD5pTzV+_B9nXurnp z;sTjkBc`0*Q$i`l8_{;aDqt1ZHU;FjyGH{OG^TTWwZFgLqg0H;RD_t9o5NFh`=>JW zh;Gtzj2+PnIx#q;WAdp@7Zg>vUn|^OG@(G{3+NO%?_J@OHqPQHXpAjVn2RRAOD!Gem6zR64w@uG(pZQOCRI)peC}U;a?eM1}KWV)XqM zPST{9b~@i#t=_n{v+L|S`_5bcgP8l%U^*-MLH=4kod}VJt9}r^Oyc>ddHb2jra_X$ zxgsP{jF304k}MMQzL;fEp}4-Da9qb7H4hexZm-wkhn?=S#TSnsc3S*V?{K+vojdm) zJUJenrx%&{g!*6%d%Ln523H`}HPw9d^DGsaRAd#sin6$^3YcHY+27U|wC`mVunPP$ z1?2v~;SxQArAD=Npix%`_vGgxZG2+aNwP%_xYD)3ho_yr1& Br)B^E literal 0 HcmV?d00001