2022-11-09 13:13:17 +00:00
|
|
|
FROM python:3.11-alpine
|
2022-05-29 02:18:03 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2022-11-09 21:36:53 +00:00
|
|
|
RUN apk add --no-cache libuv-dev git zlib-dev openssl-dev libffi-dev build-base make cmake perl go python3-dev libstdc++ gcompat libc6-compat bsd-compat-headers clang musl-dev lld compiler-rt compiler-rt-static
|
|
|
|
RUN git clone https://github.com/cirospaciari/socketify.py.git
|
|
|
|
RUN cd ./socketify.py && git submodule update --init --recursive --remote
|
2022-05-29 02:18:03 +00:00
|
|
|
|
2022-11-09 21:36:53 +00:00
|
|
|
COPY Makefile ./socketify.py/src/socketify/native/Makefile
|
|
|
|
RUN cd ./socketify.py/src/socketify/native/ && make alpine
|
|
|
|
RUN cd ./socketify.py && pip install .
|
2022-05-29 02:18:03 +00:00
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
CMD [ "python", "./main.py" ]
|