From e6b8e572b2d6002295be1d7ac8d08d7d164ec7c4 Mon Sep 17 00:00:00 2001
From: Yannis Barlas <yannisbarlas@gmail.com>
Date: Fri, 14 Jun 2024 07:24:00 +0000
Subject: [PATCH] Update 2 files

- /.gitlab-ci.yml
- /Dockerfile-production
---
 .gitlab-ci.yml        | 10 +++++-----
 Dockerfile-production | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 34e75b1a7..0e297dbc2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,21 +19,21 @@ build demo:
   before_script:
     - echo "$CI_REGISTRY_PASSWORD" | docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" --password-stdin
   script:
-    - docker pull $IMAGE_NAME_DEMO:latest || true
+    # - docker pull $IMAGE_NAME_DEMO:latest || true
     - docker build
-      --cache-from $IMAGE_NAME_DEMO:latest
+      # --cache-from $IMAGE_NAME_DEMO:latest
       --tag $IMAGE_NAME_DEMO:$CI_COMMIT_SHA
-      --tag $IMAGE_NAME_DEMO:latest
+      # --tag $IMAGE_NAME_DEMO:latest
       -f $BUILD_PATH/Dockerfile-production
       $BUILD_PATH
     - docker push $IMAGE_NAME_DEMO:$CI_COMMIT_SHA
-    - docker push $IMAGE_NAME_DEMO:latest
+    # - docker push $IMAGE_NAME_DEMO:latest
   only:
     - master
 
 pages:
   stage: Deploy
-  image: $IMAGE_NAME_DEPLOY
+  image: $IMAGE_NAME_DEPLOY:$CI_COMMIT_SHA
   script:
     - mv _build public
   artifacts:
diff --git a/Dockerfile-production b/Dockerfile-production
index 1df93434a..0ff94e13f 100644
--- a/Dockerfile-production
+++ b/Dockerfile-production
@@ -3,8 +3,8 @@
 
 FROM node:16-bullseye-slim
 
-RUN apt-get update && \
-    apt-get upgrade -y
+# RUN apt-get update && \
+#    apt-get upgrade -y
 
 WORKDIR /home/wax
 ENV NODE_ENV=production
@@ -27,10 +27,10 @@ RUN cd editors/demo && yarn react-app-rewired build
 ######
 # RUN
 
-FROM node:16-bullseye
+FROM node:16-bullseye-slim
 
-RUN apt-get update && \
-    apt-get upgrade -y
+# RUN apt-get update && \
+#     apt-get upgrade -y
 
 RUN npm install --global serve
 
-- 
GitLab