-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (35 loc) · 1.45 KB
/
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
35
36
37
38
39
40
41
#
# Docker file for the container of the web, worker, scheduler, and monitor services
#
FROM docker.io/debian:12
WORKDIR /app
# Install dependencies
# TODO: Consider removing the eatmydata dependency. It may not be needed.
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends eatmydata && \
DEBIAN_FRONTEND=noninteractive eatmydata apt-get install -y --no-install-recommends gnupg locales && \
echo "en_US.UTF-8 UTF-8" >>/etc/locale.gen && locale-gen && \
DEBIAN_FRONTEND=noninteractive eatmydata apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
python3-dev \
python3-pip \
python3-venv \
python-is-python3 \
&& \
DEBIAN_FRONTEND=noninteractive apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
## Set user info for git (needed for datalad operations)
#RUN git config --system user.name "repromon" && \
# git config --system user.email "[email protected]"
#
# RUN ["pip3", "install", "--no-cache-dir", "-U","pip", "setuptools", "poetry"]
# Some files are ignored via .dockerignore
COPY . .
RUN python3 -m venv venv && \
venv/bin/pip install poetry && \
venv/bin/poetry config virtualenvs.create false && \
venv/bin/poetry config virtualenvs.in-project true && \
venv/bin/poetry env use `which python3` && \
venv/bin/poetry install && \
venv/bin/poetry build
# poetry run srv