From 518c70c7c1402160826e1b03fe589c2b24348c76 Mon Sep 17 00:00:00 2001 From: Liviu Burcusel Date: Mon, 8 Dec 2025 16:31:02 +0100 Subject: [PATCH] Build docker image --- .github/workflows/sonar.yml | 18 ++---------------- devops/Dockerfile | 12 ++++++++++++ 2 files changed, 14 insertions(+), 16 deletions(-) create mode 100644 devops/Dockerfile diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 2620198..d8a374a 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -59,13 +59,6 @@ jobs: apk add nodejs npm node --version npm --version - - name: List files (before checkout) - run: | - echo "Current directory:" - pwd - echo "===============================" - echo "Content of current directory:" - ls -all - name: Code checkout uses: actions/checkout@v4 with: @@ -75,13 +68,6 @@ jobs: with: name: output path: ./output - - name: List files (after checkout) + - name: Build Docker image run: | - echo "Current directory:" - pwd - echo "===============================" - echo "Content of current directory:" - ls -all - echo "===============================" - echo "Content of output directory:" - ls -all ./output + docker build -f ./devops/Dockerfile -t glowing-fiesta:latest . diff --git a/devops/Dockerfile b/devops/Dockerfile new file mode 100644 index 0000000..3f63dd6 --- /dev/null +++ b/devops/Dockerfile @@ -0,0 +1,12 @@ +FROM node:lts-alpine + +WORKDIR /app + +COPY output ./ + +ENV PORT=3000 +ENV HOST=0.0.0.0 + +EXPOSE 3000 + +CMD ["node", "/app/server/index.mjs"]