Skip to content

Commit

Permalink
Add Dockerfile test
Browse files Browse the repository at this point in the history
  • Loading branch information
nayuta committed Jun 11, 2024
1 parent b290114 commit 3632f80
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testdata/config/docker/with_detections/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine:latest

RUN apk add --no-cache curl

COPY . /app

WORKDIR /app

#HEALTHCHECK --interval=30s --timeout=3s \
# CMD curl -f http://localhost/ || exit 1

CMD [ "python", "app.py" ]
14 changes: 14 additions & 0 deletions testdata/config/docker/without_detections/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM alpine:3.20

RUN apk add --no-cache curl

COPY . /app

WORKDIR /app

USER app

HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost/ || exit 1

CMD [ "python", "app.py" ]

0 comments on commit 3632f80

Please sign in to comment.