Skip to content

Commit 5f7b891

Browse files
committed
modifying dockerfiles to be more straight forward
1 parent a7a687b commit 5f7b891

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Use a base image with Docker and Docker Compose installed
2+
FROM docker/compose:latest
3+
4+
# Set the working directory
5+
WORKDIR /app
6+
7+
# Copy the entire project into the container
8+
COPY . .
9+
10+
# Build and run the test service using Docker Compose
11+
CMD ["docker-compose", "up", "--build", "test"]

test/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ RUN npm install
2626
# Copy the rest of the application
2727
COPY . .
2828

29-
# Keep container running for development
30-
CMD ["tail", "-f", "/dev/null"]
29+
# Run Cypress tests
30+
CMD ["npx", "cypress", "run"]

0 commit comments

Comments
 (0)