2024-09-07 15:23:32 +02:00
|
|
|
FROM rust:1.80
|
|
|
|
|
|
|
|
WORKDIR /usr/src/myapp
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN cargo install --path .
|
|
|
|
|
|
|
|
EXPOSE 1337/tcp
|
2024-09-07 20:01:49 +02:00
|
|
|
EXPOSE 80/tcp
|
2024-09-07 15:23:32 +02:00
|
|
|
|
|
|
|
ENV WOOLY_CHALLENGE 3
|
2024-09-07 20:01:49 +02:00
|
|
|
ENV WOOLY_CHALLENGE_PORT 1337
|
|
|
|
ENV WOOLY_ADMIN_PORT 80
|
2024-09-07 15:23:32 +02:00
|
|
|
ENV WOOLY_ARGS ""
|
|
|
|
|
2024-09-07 20:01:49 +02:00
|
|
|
CMD WOOLY_SECRET=$(cat /run/secrets/flag) wooly-vault $WOOLY_CHALLENGE 0.0.0.0:$WOOLY_CHALLENGE_PORT $WOOLY_ARGS -a 0.0.0.0:$WOOLY_ADMIN_PORT
|