File tree 2 files changed +19
-8
lines changed
2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu
1
+ FROM bitnami/minideb:stretch
2
2
3
3
ARG DEBIAN_FRONTEND=noninteractive
4
- RUN apt-get -y update
5
- RUN apt-get -y install wget udev libfontconfig xorg openbox build-essential xz-utils
6
- RUN wget https://downloads.arduino.cc/arduino-1.8.15-linux64.tar.xz
7
- RUN wget https://www.pjrc.com/teensy/td_154/TeensyduinoInstall.linux64
8
- RUN wget https://www.pjrc.com/teensy/00-teensy.rules
4
+ # RUN apt-get -y update
5
+ RUN install_packages curl udev libfontconfig xorg openbox build-essential xz-utils ca-certificates
6
+ RUN curl https://downloads.arduino.cc/arduino-1.8.15-linux64.tar.xz -o arduino-1.8.15-linux64.tar.xz
7
+ RUN curl https://www.pjrc.com/teensy/td_154/TeensyduinoInstall.linux64 -o TeensyduinoInstall.linux64
8
+ RUN curl https://www.pjrc.com/teensy/00-teensy.rules -o 00-teensy.rules
9
9
RUN cp ./00-teensy.rules /etc/udev/rules.d/
10
10
RUN tar -xavf arduino-1.8.15-linux64.tar.xz
11
11
RUN chmod 755 TeensyduinoInstall.linux64
12
12
RUN ./TeensyduinoInstall.linux64 --dir=arduino-1.8.15
13
13
14
- CMD xauth add ${TOKEN} && ./arduino-1.8.15/arduino
14
+ CMD ulimit -n 10000 && xauth add ${TOKEN} && ./arduino-1.8.15/arduino
Original file line number Diff line number Diff line change 29
29
with open (".env" ,"w" ) as f :
30
30
f .write (f"TOKEN={ token } " )
31
31
32
- docker .compose .build ()
32
+ def resource_path (relative_path ):
33
+ """ Get absolute path to resource, works for dev and for PyInstaller """
34
+ try :
35
+ # PyInstaller creates a temp folder and stores path in _MEIPASS
36
+ base_path = sys ._MEIPASS
37
+ except Exception :
38
+ base_path = os .path .abspath ("." )
39
+
40
+ return os .path .join (base_path , relative_path )
41
+
42
+
43
+ docker .buildx .build (resource_path ("." ))
33
44
34
45
docker .compose .config ()
35
46
You can’t perform that action at this time.
0 commit comments