Build docker image
Some checks failed
Sonar / SonarQube (push) Successful in 51s
Sonar / Docker stuff (push) Failing after 4s

This commit is contained in:
Liviu Burcusel 2025-12-08 16:31:02 +01:00
parent 22a102fcbd
commit 518c70c7c1
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
2 changed files with 14 additions and 16 deletions

View file

@ -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 .

12
devops/Dockerfile Normal file
View file

@ -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"]