-
Notifications
You must be signed in to change notification settings - Fork 26
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 #268 from jspaezp/feature/dockerfile
(wip) added dockerfile and cicd to publish the image
- Loading branch information
Showing
4 changed files
with
81 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
# FROM python:3.9-slim | ||
FROM --platform=linux/amd64 python:3.9-bullseye | ||
|
||
RUN apt-get update && apt-get install -y build-essential gcc python3-dev | ||
|
||
RUN adduser worker | ||
USER worker | ||
WORKDIR /home/worker | ||
|
||
COPY --chown=worker:worker dist/*.whl /home/worker | ||
|
||
# RUN python3 -m pip install ".[plotting-stable]" # Image is 1.6gb with plotting | ||
# The size is reduced to 847 mb without it. | ||
RUN python3 -m pip install --disable-pip-version-check --no-cache-dir --user /home/worker/*.whl | ||
RUN ls /home/worker/.local/lib/python3.9/site-packages/alphatims/ext/timsdata.so | ||
RUN chmod 777 /home/worker/.local/lib/python3.9/site-packages/alphatims/ext/timsdata.so | ||
|
||
RUN python3 -m pip cache purge | ||
ENV PATH="/home/worker/.local/bin:${PATH}" | ||
|
||
ENTRYPOINT [ "alphatims" ] |
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