Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kasprzyk committed Jul 3, 2024
1 parent a8684ef commit 9ff5446
Show file tree
Hide file tree
Showing 4,553 changed files with 593 additions and 1,264,548 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
32 changes: 32 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## base container
FROM python:3.9 as base_container

# Install R
RUN apt-get update && \
apt-get install --yes \
rename procps curl zsh git editorconfig pandoc r-base && \
apt-get autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Installing R packages
RUN R -e "install.packages(c('tidyverse', 'rjson', 'png', 'tinytex'), dependencies=TRUE, repos='http://cran.rstudio.com/')"

# Install TinyTeX via tinytex R package
RUN R -e "tinytex::install_tinytex()"

CMD ["/bin/bash"]

## main container
FROM base_container
# adding opencontainer labels to link registry to github repository
LABEL org.opencontainers.image.title="apex-nf"
LABEL org.opencontainers.image.description="APEX: Automated Protein EXpression in Escherichia coli"
LABEL org.opencontainers.image.url="https://github.com/stracquadaniolab/apex-nf"
LABEL org.opencontainers.image.documentation="https://github.com/stracquadaniolab/apex-nf"
LABEL org.opencontainers.image.source="https://github.com/stracquadaniolab/apex-nf"
LABEL org.opencontainers.image.vendor="stracquadaniolab"
LABEL org.opencontainers.image.authors="Martyna Kasprzyk"
LABEL org.opencontainers.image.revision="v0.1.0"
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
51 changes: 51 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
// workspace setup
"name": "apex-nf",

// setup a container to develop an OT2 protocol
"dockerFile": "Dockerfile",
"context": ".",

// Set *default* container specific settings.json values.
// vs set code specific options
"customizations": {
"vscode": {
"extensions": [
"stkb.rewrap",
"christian-kohler.path-intellisense",
"streetsidesoftware.code-spell-checker",
"aaron-bond.better-comments",
"gruntfuggly.todo-tree",
"mhutchie.git-graph",
"donjayamanne.githistory",
"github.vscode-github-actions",
"ms-azuretools.vscode-docker",
"ms-python.python",
"ms-python.black-formatter",
"njpwerner.autodocstring",
"nextflow.nextflow",
"timonwong.shellcheck"
],
"settings": {
"editor.tabSize": 4,
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/bin/bash",
"icon": "terminal-bash"
}
},
"python.formatting.provider": "none",
"source.organizeImports": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": [
"source.organizeImports"
]
}
}
}
}

}
5 changes: 5 additions & 0 deletions .devcontainer/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
black
opentrons
jinja2
docopt
pandas
247 changes: 0 additions & 247 deletions .venv/bin/Activate.ps1

This file was deleted.

Loading

0 comments on commit 9ff5446

Please sign in to comment.