Harden mutation admission and storage observation
This commit is contained in:
parent
435d4fea4c
commit
1b1d8b06c7
1 changed files with 969 additions and 461 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -19,11 +19,12 @@ COPY app ./app
|
|||
COPY src ./src
|
||||
COPY test ./test
|
||||
|
||||
RUN cabal build exe:nuthatch \
|
||||
RUN cabal build exe:nuthatch exe:nuthatch-wp04-integration \
|
||||
&& mkdir -p /out \
|
||||
&& cp "$(cabal list-bin exe:nuthatch)" /out/nuthatch
|
||||
&& cp "$(cabal list-bin exe:nuthatch)" /out/nuthatch \
|
||||
&& cp "$(cabal list-bin exe:nuthatch-wp04-integration)" /out/nuthatch-wp04-integration
|
||||
|
||||
FROM debian:bookworm-slim AS runtime
|
||||
FROM debian:bookworm-slim AS runtime-base
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
|
|
@ -33,7 +34,6 @@ RUN apt-get update \
|
|||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /out/nuthatch /usr/local/bin/nuthatch
|
||||
COPY sql ./sql
|
||||
|
||||
ENV NUTHATCH_LISTEN=0.0.0.0:8080 \
|
||||
|
|
@ -49,5 +49,14 @@ ENV NUTHATCH_LISTEN=0.0.0.0:8080 \
|
|||
NUTHATCH_S3_PATH_STYLE=true \
|
||||
NUTHATCH_AUTH_MODE=dev
|
||||
|
||||
FROM runtime-base AS test-runtime
|
||||
|
||||
COPY --from=build /out/nuthatch /usr/local/bin/nuthatch
|
||||
COPY --from=build /out/nuthatch-wp04-integration /usr/local/bin/nuthatch-wp04-integration
|
||||
|
||||
FROM runtime-base AS runtime
|
||||
|
||||
COPY --from=build /out/nuthatch /usr/local/bin/nuthatch
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["nuthatch"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue