Build docker image
This commit is contained in:
parent
22a102fcbd
commit
518c70c7c1
2 changed files with 14 additions and 16 deletions
18
.github/workflows/sonar.yml
vendored
18
.github/workflows/sonar.yml
vendored
|
|
@ -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
12
devops/Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue