-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…g anyway
- Loading branch information
There are no files selected for viewing
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# 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 -r ./src/requirements.txt | ||
RUN cd ./src; pipenv install --system; 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"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
# 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 -r requirements.txt | ||
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 | ||
# RUN pip install mypy flake8 pylint types-aiofiles |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# 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 -r requirements.txt | ||
RUN pip install pipenv | ||
RUN pipenv install --system --dev | ||
# RUN pip install pytest bandit |