forked from lars-kolbowski/xiSPEC_ms_parser
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.Dockerfile
34 lines (29 loc) · 813 Bytes
/
.Dockerfile
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
FROM python:3.10-slim as base
# Setup env
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONFAULTHANDLER 1
ENV PYTHONUNBUFFERED 1
# Install pipenv and compilation dependencies
RUN python3 -m pip install wheel pip --upgrade && pip install pipenv
RUN apt-get update && apt-get install
COPY Pipfile .
COPY Pipfile.lock .
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --system
# Create and switch to a new user to ensure security
RUN useradd --create-home appuser
WORKDIR /home/appuser
USER appuser
RUN mkdir -p /home/appuser/mzId_convertor_temp
RUN mkdir -p /home/appuser/logs
# Install application into container
COPY app ./app
COPY dbs ./dbs
COPY obo ./obo
COPY parser ./parser
COPY tests ./tests
COPY *.py .
COPY default.database.ini .
COPY config/logging.ini .
COPY .kubernetes.yml .