forked from Probe-Particle/ppafm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (18 loc) · 799 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
FROM ubuntu:22.10
# build-essential is needed for building the C++ code in the PPAFM package
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends \
build-essential \
python3 \
python3-pip \
python-is-python3 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash ppafm-user
RUN mkdir /exec && chown ppafm-user:ppafm-user /exec
USER ppafm-user
WORKDIR /home/ppafm-user
RUN pip install --upgrade --user pip && pip cache purge
COPY --chown=ppafm-user:ppafm-user ./ ppafm
RUN pip install -e ppafm/ && pip cache purge
ENV PATH="${PATH}:/home/ppafm-user/ppafm/"
WORKDIR /exec