added docker images

pull/39/head
Ciro 2022-05-28 23:18:03 -03:00
rodzic ce94fe4fe3
commit e1b2943bbc
9 zmienionych plików z 62 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,13 @@
FROM pypy:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 3000
CMD [ "pypy3", "./main.py" ]

Wyświetl plik

@ -0,0 +1,6 @@
from socketify import App
app = App()
app.get("/", lambda res, req: res.end("Hello World socketify from Python!"))
app.listen(3000, lambda config: print("Listening on port http://localhost:%d now\n" % config.port))
app.run()

Wyświetl plik

@ -0,0 +1 @@
git+https://github.com/cirospaciari/socketify.py.git@main#socketify --global-option="build_ext"

Wyświetl plik

@ -0,0 +1,15 @@
FROM python:3-alpine
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN apk add --no-cache git openssl-dev libffi-dev build-base python3-dev
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 3000
CMD [ "python", "./main.py" ]

Wyświetl plik

@ -0,0 +1,6 @@
from socketify import App
app = App()
app.get("/", lambda res, req: res.end("Hello World socketify from Python!"))
app.listen(3000, lambda config: print("Listening on port http://localhost:%d now\n" % config.port))
app.run()

Wyświetl plik

@ -0,0 +1 @@
git+https://github.com/cirospaciari/socketify.py.git@main#socketify --global-option="build_ext"

Wyświetl plik

@ -0,0 +1,13 @@
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 3000
CMD [ "python", "./main.py" ]

Wyświetl plik

@ -0,0 +1,6 @@
from socketify import App
app = App()
app.get("/", lambda res, req: res.end("Hello World socketify from Python!"))
app.listen(3000, lambda config: print("Listening on port http://localhost:%d now\n" % config.port))
app.run()

Wyświetl plik

@ -0,0 +1 @@
git+https://github.com/cirospaciari/socketify.py.git@main#socketify --global-option="build_ext"