bambi6-service-postit

Simple Note-Taking A/D Service for BambiCTF6 in 2021
git clone https://git.sinitax.com/sinitax/bambi6-service-postit
Log | Files | Refs | README | LICENSE | sfeed.txt

Dockerfile (505B)


      1FROM python:3.9-buster
      2
      3RUN useradd -ms /bin/bash -u 1000 checker
      4
      5ENV TERM=linux
      6ENV TERMINFO=/etc/terminfo
      7
      8RUN apt update && DEBIAN_FRONTEND=noninteractive apt-get install libmpfr-dev libmpc-dev
      9
     10COPY entrypoint.sh /
     11RUN chmod +x /entrypoint.sh
     12
     13COPY ./src /checker
     14WORKDIR /checker
     15RUN chown -R checker:checker /checker
     16
     17USER checker
     18RUN python3 -m pip install --no-warn-script-location -r requirements.txt
     19
     20USER root
     21ENTRYPOINT [ "sh", "-c", "chmod -R 777 /checker && su -c /entrypoint.sh checker" ]