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
@@ -17,7 +28,6 @@ import Requirements from '@macros/iam/requirements.mdx'
17
28
- Installed [Docker](https://docs.docker.com/get-started/get-docker/) or [Docker Egine](https://docs.docker.com/engine/install/)
18
29
-[Created a Scaleway Container Registry namespace](/container-registry/how-to/create-namespace/) and [logged into it](/container-registry/how-to/connect-docker-cli/)
19
30
20
-
21
31
## Create and host a simple HTML static page
22
32
23
33
To host a static HTML page on Serverless Containers, you first need to create a simple HTML page that will serve as your website. Next, you will write a Dockerfile to containerize your application, specifying how your HTML file should be served. You will then build the container image locally, and push it to the [Scaleway Container Registry](/container-registry/), before deploying it to [Scaleway Serverless Containers](/serverless-containers/).
@@ -49,7 +59,7 @@ To host a static HTML page on Serverless Containers, you first need to create a
49
59
50
60
```dockerfile
51
61
FROM nginx:alpine
52
-
COPY ./my-website /usr/share/nginx/html
62
+
COPY ./my-static-website /usr/share/nginx/html
53
63
EXPOSE 80
54
64
```
55
65
@@ -76,4 +86,10 @@ To host a static HTML page on Serverless Containers, you first need to create a
76
86
77
87
The deployment of your container can take up to a minute to complete.
78
88
79
-
6. Once your container is **ready**, click the **container endpoint** from its **Overview** tab. Your web page displays, and is available to anyone with the link.
89
+
6. Once your container is **ready**, click the **container endpoint** from its **Overview** tab. Your web page displays, and is available to anyone with the link.
90
+
91
+
## Going further
92
+
93
+
- You can host a website composed of multiple pages in the `my-static-website` folder.
94
+
- You can [add a custom domain](/serverless-containers/how-to/add-a-custom-domain-to-a-container/) name to your website.
95
+
- You can host dynamic websites using dedicated frameworks for high-quality web applications.
0 commit comments