-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
33 lines (23 loc) · 714 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
# set base image (host OS)
FROM python:3.11
RUN addgroup -S nonroot \
&& adduser -S nonroot -G nonroot
USER nonroot
# set the working directory in the container
WORKDIR /code
# copy the dependencies file to the working directory
COPY ./raman-fitting ./raman-fitting
# copy setup.cfg to work dir
# COPY setup.cfg .
# COPY setup.py .
# install package test, maybe not possible because only src
# RUN pip install -e ./
# install dependencies
RUN pip install -r requirements.txt
RUN pip install --upgrade build
RUN build ./
RUN pip install -e ./
# copy the content of the local src directory to the working directory
#COPY src/ .
# command to run on container start
CMD [ "raman_fitting run examples" ]