Skip to content

Commit bb1302f

Browse files
committed
feat(srv): update
1 parent 6e8c9bb commit bb1302f

File tree

1 file changed

+25
-9
lines changed
  • tutorials/hosting-websites-webapps-serverless-containers

1 file changed

+25
-9
lines changed

tutorials/hosting-websites-webapps-serverless-containers/index.mdx

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
---
2-
title: Hosting websites and web apps with Serverless Containers
3-
description: This page provides guidelines on how to host and deploy a website or a web app using Scaleway Serverless Containers
4-
tags: deploy host website webapp next ruby node html static api containerize application docker dockerfile
5-
dates:
6-
validation: 2025-10-01
7-
posted: 2025-10-01
2+
title: Hosting a static website with Serverless Containers
3+
description: This page provides guidelines on how to host and deploy a static website using Scaleway Serverless Containers
4+
tags: deploy host website webapp html static containerize application docker dockerfile
5+
products:
6+
- containers
7+
- container-registry
8+
dates:
9+
validation: 2025-10-06
10+
posted: 2025-10-06
11+
validation_frequency: 12
12+
difficulty: beginner
13+
usecase:
14+
- application-hosting
15+
- deploy-external-software
16+
- website-hosting
17+
ecosystem:
18+
- third-party
819
---
920

1021
import Requirements from '@macros/iam/requirements.mdx'
@@ -17,7 +28,6 @@ import Requirements from '@macros/iam/requirements.mdx'
1728
- Installed [Docker](https://docs.docker.com/get-started/get-docker/) or [Docker Egine](https://docs.docker.com/engine/install/)
1829
- [Created a Scaleway Container Registry namespace](/container-registry/how-to/create-namespace/) and [logged into it](/container-registry/how-to/connect-docker-cli/)
1930

20-
2131
## Create and host a simple HTML static page
2232

2333
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
4959

5060
```dockerfile
5161
FROM nginx:alpine
52-
COPY ./my-website /usr/share/nginx/html
62+
COPY ./my-static-website /usr/share/nginx/html
5363
EXPOSE 80
5464
```
5565

@@ -76,4 +86,10 @@ To host a static HTML page on Serverless Containers, you first need to create a
7686

7787
The deployment of your container can take up to a minute to complete.
7888

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

Comments
 (0)