-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (32 loc) · 983 Bytes
/
Dockerfile
File metadata and controls
44 lines (32 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM cimendes/maxbin2:2.2.7-1
# Metadata
LABEL description="A MaxBin2 container."
LABEL maintainer="Alejandro Madrigal Leiva"
LABEL maintainer.email="me@alemadlei.tech"
USER root
ARG USER=cabana
ARG CABANA_USER_ID=1000
ARG CABANA_GROUP_ID=1000
ENV HOME /home/$USER
# Creates work user.
RUN \
addgroup --gid "${CABANA_GROUP_ID}" --quiet $USER; \
adduser --gid "${CABANA_GROUP_ID}" --uid ${CABANA_USER_ID} --disabled-password --gecos "" $USER;
# Sets working directory.
WORKDIR $HOME
# Creates the tools folder.
RUN mkdir data tools
# Sets ownership.
RUN chown -R $USER:$USER $HOME && \
chown -R $USER:$USER /NGStools/MaxBin-2.2.7/ && \
mkdir -p $HOME/CABANA
# Cleans up libraries just in case.
RUN set -xe; \
apt-get update -y && apt-get upgrade -y && \
apt-get install -y python && \
apt-get clean && \
apt-get autoclean;
# Changes to work user.
USER $USER
# Entrypoint to keep the container running.
ENTRYPOINT ["tail", "-f", "/dev/null"]