From 269a1cb5a48f51afe537ff5587e3369bf2666a06 Mon Sep 17 00:00:00 2001
From: Adam Czepiel <czepiel@itc.rwth-aachen.de>
Date: Mon, 27 Jun 2022 09:28:28 +0200
Subject: [PATCH] Update Dockerfile, .gitlab-ci.yml

---
 .gitlab-ci.yml | 20 ++++++++++++++++++++
 Dockerfile     |  8 ++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 Dockerfile

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2e5bd00..7381475 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,26 @@ stages:
 # there are more stages in the imported file but we only want to import some
 #  - test
   - publish
+  - container 
+
+container:
+  stage: container
+  tags: 
+    - runner:docker
+  image:
+    name: gcr.io/kaniko-project/executor:debug
+    entrypoint: [""]
+  script:
+    - mkdir -p /kaniko/.docker
+    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
+    - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY/$CI_PROJECT_PATH/$CI_COMMIT_BRANCH:v1.0
+  #only:
+  #  refs:
+  #      - branches
+  #  changes:
+  #      - Dockerfile 
+  except:
+    - schedules
 
 build-branch:
   extends: .build-branch
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..e97decb
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,8 @@
+FROM node:16-alpine
+WORKDIR /app
+COPY ./ . 
+RUN yarn install -y
+
+CMD ["yarn", "run", "dev"]
+
+EXPOSE 9748
-- 
GitLab