-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ereiarrus
committed
Jan 30, 2024
1 parent
9c74fe0
commit f66067b
Showing
27 changed files
with
1,265 additions
and
1,323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM python:3.10-alpine | ||
FROM python:3.12-alpine | ||
WORKDIR /complements-bot-py | ||
ENV PYTHONPATH /complements-bot-py | ||
COPY src ./src | ||
COPY main.py . | ||
RUN rm -rf ./src/test_complements_bot | ||
RUN pip install -r ./src/requirements.txt | ||
RUN pip install pipenv | ||
RUN apk add --no-cache \ | ||
gcc \ | ||
musl-dev \ | ||
python3-dev \ | ||
libffi-dev \ | ||
openssl-dev \ | ||
cargo \ | ||
build-base | ||
RUN cd ./src; pipenv install --system --deploy; cd .. | ||
RUN apk add python3-dev | ||
RUN apk add build-base | ||
RUN pip install cython | ||
RUN python -m cython -3 --embed -o main.c main.py | ||
RUN gcc -Os -I /usr/include/python3.10 -o main main.c -lpython3.10 -lpthread -lm -lutil -ldl | ||
EXPOSE 50994/tcp | ||
EXPOSE 50995/tcp | ||
RUN gcc -Os -I /usr/include/python3.12 -o main main.c -lpython3.12 -lpthread -lm -lutil -ldl | ||
# EXPOSE 50994/tcp | ||
# EXPOSE 50995/tcp | ||
CMD ["./main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM python:3.10-alpine | ||
FROM python:3.12-alpine | ||
WORKDIR /src | ||
COPY src . | ||
RUN pip install -r requirements.txt | ||
RUN pip install mypy flake8 pylint types-aiofiles | ||
RUN pip install pipenv | ||
RUN apk add --no-cache \ | ||
gcc \ | ||
musl-dev \ | ||
python3-dev \ | ||
libffi-dev \ | ||
openssl-dev \ | ||
cargo \ | ||
build-base | ||
RUN pipenv install --system --dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM python:3.10-alpine | ||
FROM python:3.12-alpine | ||
WORKDIR /src | ||
COPY src . | ||
RUN pip install -r requirements.txt | ||
RUN pip install pytest bandit | ||
RUN pip install pipenv | ||
RUN apk add --no-cache \ | ||
gcc \ | ||
musl-dev \ | ||
python3-dev \ | ||
libffi-dev \ | ||
openssl-dev \ | ||
cargo \ | ||
build-base | ||
RUN pipenv install --system --dev |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.