-
Notifications
You must be signed in to change notification settings - Fork 9
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 #34 from TaylorTWBrown/update-2024
Update Dockerfile and Actions
- Loading branch information
Showing
2 changed files
with
34 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
FROM --platform=$BUILDPLATFORM debian:11.3 | ||
# FROM debian:11.3 | ||
FROM --platform=$BUILDPLATFORM debian:12.6 | ||
# FROM debian:12.6 | ||
|
||
LABEL version="1.0" maintainer="[email protected]" description="Docker Ombi Data Base Migration Tools" | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get install -y python3 python3-pip libmariadb-dev git libicu-dev && \ | ||
pip3 install --no-cache-dir --upgrade pip && \ | ||
pip3 install --no-cache-dir mysqlclient packaging && \ | ||
apt-get clean autoclean && \ | ||
apt-get autoremove --yes && \ | ||
rm -rf /var/lib/{apt,dpkg,cache,log}/ | ||
apt-get update && \ | ||
apt-get install -y python3 python3-pip libmariadb-dev git libicu-dev python3-venv pkg-config && \ | ||
apt-get clean autoclean && \ | ||
apt-get autoremove --yes && \ | ||
rm -rf /var/lib/{apt,dpkg,cache,log}/ | ||
|
||
# Create a virtual environment | ||
RUN python3 -m venv /opt/venv | ||
|
||
# Activate the virtual environment and install Python packages | ||
RUN /opt/venv/bin/pip install --no-cache-dir --upgrade pip && \ | ||
/opt/venv/bin/pip install --no-cache-dir mysqlclient packaging | ||
|
||
# Ensure the virtual environment is activated for subsequent commands | ||
ENV PATH="/opt/venv/bin:$PATH" | ||
|
||
WORKDIR / | ||
COPY --chown=root:root /rootfs / | ||
|
||
WORKDIR /opt/ombi_sqlite_mysql | ||
COPY --chown=root:root ["ombi_sqlite2mysql.py", "ombi_sqlite2mysql_multi.py", "./"] | ||
|
||
#Fix, hub.docker.com auto buils | ||
# Fix, hub.docker.com auto builds | ||
RUN chmod +x /opt/ombi_sqlite_mysql/*.py /opt/ombi_sqlite_mysql/*.sh | ||
|
||
ENV HTTP_PORT=5000 | ||
|
||
VOLUME ["/config", "/opt/ombi"] | ||
EXPOSE ${HTTP_PORT}/tcp | ||
ENV HTTP_PORT=5000 |