Skip to content

Commit ca341c0

Browse files
committed
update 03
1 parent e81e127 commit ca341c0

38 files changed

Lines changed: 4801 additions & 2684 deletions

07-cloud/03-docker/03-upload-docker-image/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine AS base
1+
FROM node:22-alpine AS base
22
RUN mkdir -p /usr/app
33
WORKDIR /usr/app
44

@@ -18,4 +18,4 @@ COPY ./server/index.js ./
1818
RUN npm ci --omit=dev
1919

2020
ENV PORT=8080
21-
CMD node index.js
21+
CMD ["node", "index.js"]

07-cloud/03-docker/03-upload-docker-image/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ docker login <registry>
2020
```
2121

2222
> `<registry>`: By default is docker.io.
23+
>
2324
> We can use `docker info` to see it.
2425
2526
Then we need tag the image with registry and path information to match with the `DockerHub` repository name that we would like to upload:
@@ -33,6 +34,7 @@ docker tag my-app:2 <user-name>/<app-name>
3334
```
3435

3536
> `<registry>`: By default is docker.io.
37+
>
3638
> `<path-to-repository>`: In the DockerHub case is <user-name>/<app-name> > `<tag>`: is optionally, by default would be latest.
3739
3840
Check image list now:

0 commit comments

Comments
 (0)