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 (520B)


      1FROM ubuntu:18.04
      2
      3RUN useradd -ms /bin/bash -u 1000 service
      4
      5RUN apt update && apt install -y --no-install-recommends \
      6	nmap gcc make libc6-dev libc6 libc-dev-bin libsqlite3-dev libgmp-dev
      7
      8COPY entrypoint.sh /
      9RUN chmod 755 /entrypoint.sh
     10
     11COPY src/ /service
     12RUN make -C /service clean && make -C /service
     13RUN chmod +x /service/postit /service/cleandb /service/gendb
     14RUN chown -R service:service /service
     15WORKDIR /service
     16
     17EXPOSE 9000
     18
     19ENTRYPOINT ["sh", "-c", "chmod -R 777 /service && su -c /entrypoint.sh service"]