Remove potato image from code golf post
This commit is contained in:
parent
e90db7eb3f
commit
7d9a2cd4a7
1 changed files with 14 additions and 5 deletions
|
|
@ -71,6 +71,8 @@ how they work
|
|||
docker implementation
|
||||
=====================
|
||||
|
||||
**Python Dockerfile:**
|
||||
|
||||
.. code-block:: dockerfile
|
||||
|
||||
FROM alpine:latest
|
||||
|
|
@ -80,6 +82,18 @@ docker implementation
|
|||
RUN chmod 0754 /bin/webwords
|
||||
RUN apk --no-cache add python3 ca-certificates && rm -rf /var/cache/apk/*
|
||||
|
||||
**C Dockerfile:**
|
||||
|
||||
.. code-block:: dockerfile
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add gcc musl-dev curl-dev
|
||||
WORKDIR /app
|
||||
COPY golf.c .
|
||||
RUN gcc -o webwords golf.c -lcurl
|
||||
EXPOSE 31337
|
||||
CMD ["./webwords"]
|
||||
|
||||
testing
|
||||
=======
|
||||
|
||||
|
|
@ -101,11 +115,6 @@ testing
|
|||
|
||||
Both return ``true`` for potato and ``false`` for lemon, just like the full implementations.
|
||||
|
||||
.. image:: /uploads/2025/10/potato.jpg
|
||||
:alt: potato
|
||||
:align: center
|
||||
:width: 480px
|
||||
|
||||
comparison
|
||||
==========
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue