Skip to content

Commit a0e2704

Browse files
committed
Set up webserver container
1 parent 10d246b commit a0e2704

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

cypress/docker/docker-compose.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: "3"
2+
3+
services:
4+
webserver:
5+
image: webserver
6+
build:
7+
dockerfile: ./cypress/docker/webserver.Dockerfile
8+
context: ../..
9+
container_name: webserver
10+
restart: always
11+
tty: true
12+
ports:
13+
- "8080:9080"
14+
volumes:
15+
- ../..:/app

cypress/docker/webserver.Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:lts-buster-slim
2+
3+
RUN npm install -g [email protected]
4+
5+
WORKDIR /app
6+
7+
CMD ["static-server"]
8+
9+
EXPOSE 9080

cypress/fixtures/camera.jpg

2.34 MB
Loading

cypress/fixtures/conf.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"images": [
3+
{"url": "/cypress/fixtures/camera.jpg"}
4+
]
5+
}

0 commit comments

Comments
 (0)