Dockerfile 354 B

1234567891011
  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. RUN gcc -Os -ansi wm.c -o /usr/bin/wm -lm
  9. RUN rm wm.c
  10. RUN chmod +x /usr/bin/wm
  11. RUN chmod 705 /usr/bin/wm