Dev ci #1

Merged
Djeex merged 4 commits from dev-ci into main 2026-08-23 00:04:46 +02:00
Showing only changes of commit b825dec8be - Show all commits
+17 -1
View File
@@ -1,4 +1,4 @@
FROM alpine:latest
FROM alpine:3.22.1 AS base
RUN apk add --no-cache socat netcat-openbsd \
&& rm -rf /var/cache/apk/* /tmp/*
@@ -7,4 +7,20 @@ COPY entrypoint.sh VERSION /
RUN mkdir -p /socket \
&& chmod +x /entrypoint.sh
FROM base AS test
RUN apk add --no-cache bats bash procps
WORKDIR /app
COPY entrypoint.sh VERSION /app/
COPY tests/ /app/tests/
FROM base AS lint
RUN apk add --no-cache shellcheck
RUN shellcheck --severity=error -s sh /entrypoint.sh
# Kept as the last stage so `docker build .` (no --target) still produces
# the lean prod image, not the `test`/`lint` stages above.
FROM base
ENTRYPOINT ["/entrypoint.sh"]