-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from YaoYinYing/master
dockerfile for armhf linux
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 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 |
---|---|---|
|
@@ -4,4 +4,6 @@ docker-compose.yaml | |
README.md | ||
LICENSE | ||
logs/*.log | ||
account/*.json | ||
account/*.json | ||
.idea | ||
venv |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.11-slim | ||
|
||
WORKDIR /app | ||
|
||
# Install Python dependencies | ||
COPY requirements.txt ./ | ||
|
||
# Install Python, pip, necessary build dependencies,in one layer | ||
RUN apt-get update && \ | ||
apt-get install -y libffi-dev libssl-dev build-essential && \ | ||
printf "[global]\nextra-index-url=https://www.piwheels.org/simple\n" > /etc/pip.conf && \ | ||
pip3 install --no-cache-dir -r requirements.txt && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the rest of the code | ||
COPY . . | ||
RUN chmod +x ./scripts/*.sh | ||
|
||
# Set environment variables | ||
ENV RUN_IN_DOCKER=true | ||
|
||
CMD ["/bin/sh", "./scripts/run.sh"] |