Dockerfile 438 B

1234567891011121314
  1. RUN apt-get install gcc python3 python3-pip -y
  2. RUN pip3 install --break-system-packages lark-parser
  3. RUN ln -s /usr/bin/python3 /usr/bin/python
  4. COPY ./wmc/wm.c ./wm.c
  5. COPY ./wmc/wma.py /usr/bin/wma
  6. RUN chmod +x /usr/bin/wma
  7. RUN chmod 705 /usr/bin/wma
  8. COPY ./wmc/wmc.py /usr/bin/wmc
  9. RUN chmod +x /usr/bin/wmc
  10. RUN chmod 705 /usr/bin/wmc
  11. RUN gcc -Os -ansi wm.c -o /usr/bin/wm -lm
  12. RUN rm wm.c
  13. RUN chmod +x /usr/bin/wm
  14. RUN chmod 705 /usr/bin/wm