23 lines
510 B
Docker
23 lines
510 B
Docker
FROM debian:trixie-slim as qemu
|
|
|
|
ARG DEBCONF_NOWARNINGS="yes"
|
|
ARG DEBIAN_FRONTEND="noninteractive"
|
|
ARG DEBCONF_NONINTERACTIVE_SEEN="true"
|
|
|
|
RUN apt-get update && \
|
|
apt-get --no-install-recommends -y install \
|
|
qemu-system-x86
|
|
|
|
FROM pwn.red/jail as jail
|
|
COPY flag.txt /srv/app/
|
|
COPY sss /srv/app/
|
|
COPY run.sh /srv/app/run
|
|
WORKDIR /srv/app/
|
|
RUN dd if=flag.txt of=sss bs=1 conv=notrunc
|
|
COPY --from=qemu / /srv/
|
|
|
|
# jail configuration
|
|
ENV JAIL_TIME=30
|
|
ENV JAIL_CPU=100
|
|
ENV JAIL_PORT=1337
|
|
ENV JAIL_MEM=50M
|