kopia lustrzana https://github.com/cirospaciari/socketify.py
arch docker test and alpine test
rodzic
d3cbf9cea9
commit
be5cea93d8
|
@ -1,10 +1,10 @@
|
|||
FROM python:3-alpine
|
||||
FROM python:3.11-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
|
||||
RUN apk add --no-cache libuv-dev git openssl-dev libffi-dev build-base python3-dev
|
||||
RUN apk add --no-cache libuv-dev git openssl-dev libffi-dev build-base python3-dev libstdc++ gcompat
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
FROM archlinux:latest
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
|
||||
|
||||
RUN yes | pacman -Sy python python-pip libuv openssl git
|
||||
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
|
Ładowanie…
Reference in New Issue