FROM ubuntu@sha256:c35e29c9450151419d9448b0fd75374fec4fff364a27f176fb458d472dfc9e54

RUN useradd -m -u 1001 ctf

COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh

WORKDIR /app
COPY grob .
RUN chmod +x /app/grob

RUN mkdir -p /app/history && chown -R ctf:ctf /app

CMD ["/docker-entrypoint.sh"]
