Skip to content

Commit 46fe33d

Browse files
committed
Test-5:Previous failed because of path
1 parent 8b4b44f commit 46fe33d

5 files changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/image-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- name: Build and push image
2828
uses: docker/build-push-action@v5
2929
with:
30-
context: ../development-workflow/api-node
31-
file: ./Dockerfile.2
30+
context: .
31+
file: ./Dockerfile
3232
push: true
3333
tags: ${{ steps.meta.outputs.tags }}
3434
- name: Run test on image

01-building-container-images/Dockerfile.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ RUN echo 'Installing dependencies'
44

55
RUN apt update && apt install nodejs npm
66

7-
COPY . .
7+
COPY . .
88

99
CMD [ "npm","run","dev" ]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
test('This is a test that always passes', () => {
22
expect(true).toBe(true);
3-
});
3+
});

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ubuntu:latest
2+
3+
RUN echo 'Installing dependencies'
4+
5+
RUN apt update
6+
7+
RUN apt install nodejs npm
8+
9+
COPY . .
10+
11+
CMD [ "npm","run","dev" ]
12+

journal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
This repository documents my first hands-on learning experience with Docker.
66
I built a simple Ubuntu-based image, installed some packages, and ran a container interactively to understand how Docker images and containers work.
77

8-
---
8+
---

0 commit comments

Comments
 (0)