This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun any-of (l) | |
(and (not (null l)) | |
(or (car l) | |
(any-of (cdr l))))) | |
(defun init (l) | |
(if (or (= (length l) 1) (null l)) | |
nil | |
(cons (car l) (init (cdr l))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM snakepacker/python:all as builder | |
RUN python3.8 -m venv /usr/share/python3/app | |
RUN /usr/share/python3/app/bin/pip install -U pip redis falcon gunicorn requests | |
RUN find-libdeps /usr/share/python3/app > /usr/share/python3/app/pkgdeps.txt | |
FROM snakepacker/python:3.8 | |
COPY --from=builder /usr/share/python3/app /usr/share/python3/app | |
RUN cat /usr/share/python3/app/pkgdeps.txt | xargs apt-install | |
RUN ln -snf /usr/share/python3/app/bin/gunicorn /usr/bin/ | |
RUN mkdir /app && echo 'import redis; import falcon; import requests as rq \n\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:bionic | |
RUN apt-get -y update \ | |
&& apt-get install -y curl \ | |
&& curl -sL https://deb.nodesource.com/setup_14.x | bash \ | |
&& apt-get install -y nodejs | |
RUN npm install -g express-generator \ | |
&& express isoddeven \ | |
&& cd isoddeven/ \ |