Skip to content

Commit

Permalink
chore(deployment): added new Dockerfile for dummy_recorder service
Browse files Browse the repository at this point in the history
  • Loading branch information
idan-starkware committed Jan 16, 2025
1 parent b43ae77 commit 6b95224
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions deployments/images/sequencer/dummy_recorder.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#syntax = devthefuture/dockerfile-x

INCLUDE deployments/images/base/Dockerfile

FROM base AS builder
WORKDIR /app
COPY . .
RUN cargo build --bin dummy_recorder

FROM ubuntu:22.04

ENV ID=1000
WORKDIR /app
COPY --from=builder /app/target/debug/dummy_recorder ./target/debug/dummy_recorder
COPY --from=builder /usr/bin/tini /usr/bin/tini

RUN set -ex; \
addgroup --gid ${ID} dummy_recorder; \
adduser --ingroup $(getent group ${ID} | cut -d: -f1) --uid ${ID} --gecos "" --disabled-password --home /app dummy_recorder; \
chown -R dummy_recorder:dummy_recorder /app

EXPOSE 8080

USER ${ID}

ENTRYPOINT ["tini", "--", "/app/target/debug/dummy_recorder"]

0 comments on commit 6b95224

Please sign in to comment.