-
Notifications
You must be signed in to change notification settings - Fork 1
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
6 changed files
with
68 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Publish Docker image | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Publish to Registry | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
with: | ||
name: ${{ github.repository }}/builder:${{ github.ref_name }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io |
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,36 @@ | ||
# Use the bioconductor base image as the starting point | ||
FROM --platform=linux/amd64 python:3.11-slim | ||
|
||
# Install system dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
wget \ | ||
build-essential \ | ||
rsync | ||
|
||
# Install Python dependencies | ||
COPY requirements.txt /requirements.txt | ||
RUN pip install -r /requirements.txt | ||
|
||
# Download and build SQLite3 from source | ||
RUN wget --no-check-certificate https://www.sqlite.org/2024/sqlite-autoconf-3450300.tar.gz && \ | ||
tar -xvf sqlite-autoconf-3450300.tar.gz && \ | ||
cd sqlite-autoconf-3450300 && \ | ||
./configure && \ | ||
make && \ | ||
make install && \ | ||
export PATH="/usr/local/lib:$PATH" && \ | ||
cd .. && \ | ||
rm -rf sqlite-autoconf-3450300.tar.gz sqlite-autoconf-3450300 | ||
|
||
# Set environment variable for LD_LIBRARY_PATH | ||
ENV LD_LIBRARY_PATH=/usr/local/lib | ||
|
||
# Copy the project files into the Docker image | ||
COPY . /project | ||
|
||
# Set the working directory | ||
WORKDIR /project | ||
|
||
EXPOSE 8889 | ||
CMD ["jupyter", "lab", "--allow-root", "--ip=0.0.0.0", "--port=8889", "--no-browser"] |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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