You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/serverless-containers/how-to/build-push-container-image.mdx
+80-20Lines changed: 80 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
2
meta:
3
-
title: How to create a Dockerfile
4
-
description: Learn how to create a Dockerfile for deploying containerized applications.
3
+
title: How to build and push a container image
4
+
description: How to build and push a container image based on a Dockerfile for deploying containerized applications with Scaleway Serverless Containers.
5
5
content:
6
-
h1: How to create a Dockerfile
7
-
paragraph: Learn how to create a Dockerfile to containerize your applications for deployment on Scaleway or any other containerized platform.
6
+
h1: How to build and push a container image
7
+
paragraph: How to build and push a container image based on a Dockerfile for deploying containerized applications with Scaleway Serverless Containers.
2. Run the following command to build your Docker image:
53
113
54
-
```bash
55
-
docker build -t my-application .
56
-
```
114
+
```bash
115
+
docker build -t my-application .
116
+
```
57
117
58
-
3.Log in to your Scaleway account in the terminal:
118
+
3.Run the command below to log in to your Scaleway account in the terminal. Do not forget to replace the placeholder with your Container Registry namespace endpoint:
You can now access your container image from the [Scaleway Container Registry](https://console.scaleway.com/)
136
+
You can now access your container image from the [Scaleway Container Registry](https://console.scaleway.com/registry/namespaces), and [deploy a Serverless Container](/serverless-containers/how-to/deploy-container/#deploy-from-an-external-container-registry) from this image.
0 commit comments