-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: project to latest Debian image + Python 3.11
- Loading branch information
1 parent
50995e2
commit 27d40f1
Showing
4 changed files
with
21 additions
and
14 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,28 +1,35 @@ | ||
FROM node:18-bullseye-slim | ||
FROM node:20-bookworm-slim | ||
|
||
# Setting environment variables | ||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
# Install Python and pip | ||
# Install Python, venv, and other essentials | ||
RUN : \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
python3.11 \ | ||
python3.11-venv \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
&& pip3 install --no-cache-dir --upgrade pip \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& : | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Enable virtual environment for subsequent commands (safe for Debian BookWorm) | ||
RUN python3.11 -m venv /opt/venv | ||
ENV PATH="/opt/venv/bin:$PATH" | ||
|
||
# Upgrade pip | ||
RUN pip install --no-cache-dir --upgrade pip | ||
|
||
# Install Python dependencies | ||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt | ||
RUN pip install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
# Install Node.js dependencies | ||
RUN npm i -g @shogobg/[email protected] | ||
|
||
# Copy Python scripts | ||
COPY sync_jira_actions/ /sync_jira_actions | ||
|
||
# Define the entrypoint | ||
ENTRYPOINT ["/usr/bin/python3", "/sync_jira_actions/sync_to_jira.py"] | ||
# Define the entrypoint to use the virtual environment's Python interpreter | ||
ENTRYPOINT ["/opt/venv/bin/python", "/sync_jira_actions/sync_to_jira.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