forked from tapparelj/gr-lora_sdr
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
35 lines (25 loc) · 758 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
35
FROM archlinux/archlinux:base-devel
RUN pacman -Syu --needed --noconfirm git
# makepkg user and workdir
ARG user=makepkg
RUN useradd --system --create-home $user \
&& echo "$user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$user
USER $user
WORKDIR /home/$user
# Install yay
RUN git clone https://aur.archlinux.org/yay.git \
&& cd yay \
&& makepkg -sri --needed --noconfirm \
&& cd \
# Clean up
&& rm -rf .cache yay
RUN yay -Syu --needed --noconfirm gr-lora_sdr python-pip
COPY requirements.txt ./
COPY apps/runner.py .
COPY apps/cran_recieve.py .
#Install requirements
RUN pip install --no-cache-dir -r requirements.txt
# run the command
CMD [ "python", "./runner.py"]
# tell the port number the container should expose
EXPOSE 5555/tcp