Skip to content

Commit eb2d9d1

Browse files
MI-85: Upgrade docker image build process
1 parent d00e93d commit eb2d9d1

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ jobs:
1010
with:
1111
ref: ${{ github.event.release.target_commitish }}
1212
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 20.x
1315
- name: Build pipeline code
1416
run: |
15-
npm ci --omit=dev
17+
npm ci
1618
npm run build
19+
- name: Trim down devDependencies
20+
run: npm prune --production
1721
- name: Build docker image
1822
run: docker build --build-arg NODE_TAG=20 .

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN npm install -g --force npm pnpm yarn
1010

1111
COPY node_modules ./node_modules
1212
COPY dist/ ./
13-
COPY entrypoint.sh ./
13+
COPY entrypoint.sh package.json ./
1414

1515
RUN chmod a+x ./**/*.js entrypoint.sh
1616

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"name": "nx-serverless-deploy-pipe",
3-
"version": "1.0.0",
4-
"description": "Bitbucket Pipeline to deploy multiple Serverless Framework projects in an Nx monorepo",
3+
"version": "1.1.0",
4+
"description": "Bitbucket Pipeline to deploy multiple Serverless Framework projects",
5+
"main": "bin/index.js",
6+
"author": "Aligent",
7+
"license": "MIT",
58
"scripts": {
6-
"build": "tsc",
7-
"watch": "tsc -w"
9+
"build": "tsc"
810
},
911
"dependencies": {
1012
"axios": "^1.5.0",

0 commit comments

Comments
 (0)