kopia lustrzana https://github.com/cirospaciari/socketify.py
added docker images
rodzic
ce94fe4fe3
commit
e1b2943bbc
|
@ -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" ]
|
|
@ -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()
|
|
@ -0,0 +1 @@
|
||||||
|
git+https://github.com/cirospaciari/socketify.py.git@main#socketify --global-option="build_ext"
|
|
@ -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" ]
|
|
@ -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()
|
|
@ -0,0 +1 @@
|
||||||
|
git+https://github.com/cirospaciari/socketify.py.git@main#socketify --global-option="build_ext"
|
|
@ -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" ]
|
|
@ -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()
|
|
@ -0,0 +1 @@
|
||||||
|
git+https://github.com/cirospaciari/socketify.py.git@main#socketify --global-option="build_ext"
|
Ładowanie…
Reference in New Issue