Skip to content

Commit 7982056

Browse files
committed
add dockerfile and build
1 parent 69b4924 commit 7982056

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ jobs:
2424
run: |
2525
chmod +x ./build.sh
2626
if [ "${GITHUB_REF##*/}" == "master" ]; then
27-
VERSION="2.5.${GITHUB_RUN_NUMBER}"
27+
VERSION="3.0.${GITHUB_RUN_NUMBER}"
2828
else
2929
BRANCH_TO_DOCKER=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9._-]//g')
3030
VERSION="${BRANCH_TO_DOCKER}-${GITHUB_RUN_NUMBER}"
3131
fi
32-
sudo ./build.sh "registry.hub.docker.com" "wurstbrot" "dsomm" "${VERSION}" "${{ secrets.HUB_USERNAME }}" "${{ secrets.HUB_TOKEN }}"
32+
sudo docker build -t wurstbrot/dsomm:latest .
33+
sudo docker push wurstbrot/dsomm:latest
34+
sudo docker tag wurstbrot/dsomm:${VERSION}
35+
sudo docker push wurstbrot/dsomm:${VERSION}

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:18.7-alpine AS build
2+
WORKDIR /usr/src/app
3+
COPY package.json package-lock.json ./
4+
RUN npm install
5+
COPY . .
6+
RUN npm run build
7+
8+
FROM bitnami/nginx:latest
9+
#COPY nginx.conf /etc/nginx/nginx.conf
10+
COPY --from=build /usr/src/app/dist/dsomm/ /app

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{
3939
"type": "initial",
4040
"maximumWarning": "500kb",
41-
"maximumError": "1mb"
41+
"maximumError": "2mb"
4242
},
4343
{
4444
"type": "anyComponentStyle",

0 commit comments

Comments
 (0)