Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Read sequencer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zavolan_group
tools
Read sequencer
Commits
335f9a46
Commit
335f9a46
authored
2 years ago
by
Christoph Harmel
Browse files
Options
Downloads
Plain Diff
Merge branch 'dockerfile' into 'main'
build: add Dockerfile See merge request
!35
parents
1691d679
7a2aace6
No related branches found
No related tags found
1 merge request
!35
build: add Dockerfile
Pipeline
#14953
passed
2 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+42
-0
42 additions, 0 deletions
Dockerfile
with
42 additions
and
0 deletions
Dockerfile
0 → 100644
+
42
−
0
View file @
335f9a46
FROM
python:3.11.1-slim-bullseye
# MAINTAINER add_maintainer
# set names for user, group and user home
ARG
USER="bioc"
ARG
GROUP="bioc"
ARG
WORKDIR="/home/${USER}"
# create user, group, user home & makes the user and group
# the owner of the user home
RUN
mkdir
-p
$WORKDIR
\
&&
groupadd
-r
$GROUP
\
&&
useradd
--no-log-init
-r
-g
$GROUP
$USER
\
&&
chown
-R
${
USER
}
:
${
GROUP
}
$WORKDIR
\
&&
chmod
700
$WORKDIR
# set the user, make sure the location where pip
# installs binaries/executables is part of the $PATH
# and set the working directory to the user's home
USER
$USER
ENV
PATH="${WORKDIR}/.local/bin:${PATH}"
WORKDIR
$WORKDIR
# copy entire content of the current directory to the
# working directory; ensure that this does not contain any
# files that you don't want to have end up in the Docker
# image, especially not any secrets!
# use `.dockerignore` to set files that you do NOT want
# Docker to copy
COPY
--chown=${USER}:${GROUP} . $WORKDIR
# install app and development dependencies
# assumes that dependencies in `requirements.txt` are
# automatically installed when installing the app; if
# that is not the case, they need to be installed
# _before_ installing the app
RUN
pip
install
.
\
&&
pip
install
--no-cache-dir
-r
requirements-dev.txt
# set default command; optional
CMD
["readsequencer"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment