From 63bf78e15c8806de95c7a9761ed0f766099acab3 Mon Sep 17 00:00:00 2001
From: Yana Kernerman <kernerya@gmail.com>
Date: Sat, 17 Aug 2024 16:44:13 +0200
Subject: [PATCH] trigger pipeline

---
 .gitlab-ci.yml |  2 +-
 Dockerfile     | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644 Dockerfile

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e34c1d3..06244dc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,7 +47,7 @@ job_build_and_publish_image:
   before_script:
     - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
   script:
-    - echo "Publishing artifact..."
+    - echo "Publishing artifact ..."
     - ls -al
     - docker build -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
     - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..8a87f0a
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,25 @@
+## 1. Basisimage auswählen
+FROM golang:1.21
+
+# Set the working directory inside the container
+WORKDIR /app
+
+# Copy go.mod and go.sum files first to cache dependencies
+COPY go.mod go.sum ./
+
+# Copy the rest of the application code
+COPY . .
+
+RUN go build -o artifact.bin ./*.go
+
+# Set environment variables
+ENV HOST=0.0.0.0
+
+# Expose the port the application runs on
+EXPOSE 8080
+
+CMD ["./artifact.bin"]
+
+RUN echo 'hello world'
+
+
-- 
GitLab