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
|
apk add nodejs npm
|
||||||
node --version
|
node --version
|
||||||
npm --version
|
npm --version
|
||||||
- name: List files (before checkout)
|
|
||||||
run: |
|
|
||||||
echo "Current directory:"
|
|
||||||
pwd
|
|
||||||
echo "==============================="
|
|
||||||
echo "Content of current directory:"
|
|
||||||
ls -all
|
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
@ -75,13 +68,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: output
|
name: output
|
||||||
path: ./output
|
path: ./output
|
||||||
- name: List files (after checkout)
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
echo "Current directory:"
|
docker build -f ./devops/Dockerfile -t glowing-fiesta:latest .
|
||||||
pwd
|
|
||||||
echo "==============================="
|
|
||||||
echo "Content of current directory:"
|
|
||||||
ls -all
|
|
||||||
echo "==============================="
|
|
||||||
echo "Content of output directory:"
|
|
||||||
ls -all ./output
|
|
||||||
|
|
|
||||||
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