-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
3 changed files
with
26 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
FROM arm32v7/python:3.9.15-slim-bullseye as base | ||
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 | ||
FROM python:3.11-bullseye | ||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 | ||
WORKDIR /base | ||
RUN apt-get update && apt-get -y install gcc | ||
COPY requirements.txt . | ||
RUN pip install --index-url=https://www.piwheels.org/simple --no-cache-dir -r requirements.txt | ||
|
||
FROM arm32v7/python:3.9.15-slim-bullseye | ||
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 | ||
COPY --from=base /usr/local/lib/python3.9/site-packages/ /usr/local/lib/python3.9/site-packages/ | ||
COPY --from=base /usr/local/bin/ /usr/local/bin/ | ||
WORKDIR /bot | ||
RUN apt-get update && apt-get install libatomic1 -y | ||
COPY . . | ||
CMD ["python3", "main.py"] | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
CMD ["python", "main.py"] | ||
|
||
# FROM arm32v7/python:3.9.15-slim-bullseye as base | ||
# ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 | ||
# RUN apt-get update && apt-get -y install gcc | ||
# COPY requirements.txt . | ||
# RUN pip install --index-url=https://www.piwheels.org/simple --no-cache-dir -r requirements.txt | ||
|
||
# FROM arm32v7/python:3.9.15-slim-bullseye | ||
# ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 | ||
# COPY --from=base /usr/local/lib/python3.9/site-packages/ /usr/local/lib/python3.9/site-packages/ | ||
# COPY --from=base /usr/local/bin/ /usr/local/bin/ | ||
# WORKDIR /bot | ||
# RUN apt-get update && apt-get install libatomic1 -y | ||
# COPY . . | ||
# CMD ["python3", "main.py"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM arm32v7/python:3.9.15-slim-bullseye | ||
FROM python:3.12-bullseye | ||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 | ||
WORKDIR /base | ||
RUN apt-get update && apt-get -y install gcc | ||
# RUN apt-get update && apt-get -y install gcc | ||
COPY . . | ||
RUN pip install -U -i https://www.piwheels.org/simple --no-cache-dir -r requirements.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] |