arch docker test and alpine test

pull/39/head
Ciro 2022-11-09 10:13:17 -03:00
rodzic d3cbf9cea9
commit be5cea93d8
4 zmienionych plików z 24 dodań i 2 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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" ]

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