-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (30 loc) · 1.35 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
42
43
44
45
#remember to use -y to apt install stuff that asks for confirmation.
# FROM ubuntu:latest
FROM python:3.8-slim
RUN echo "Hello World, we are at $(pwd), with user $(whoami), and these are the folder list $(ls -la)"
RUN apt update
RUN apt upgrade -y
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install git -y
RUN apt-get install -y \
python3-pip
# python3 \
RUN apt install doxygen -y
RUN pip install platformio
RUN echo "apt updated, git installed, python installed, doxygen installed, platformio installed"
# Copy the content of /app on local to container, and cd to it
COPY app/ /workspace/app/
WORKDIR /workspace/app
RUN echo "Working directory set to /workspace/app, we are at $(pwd), with user $(whoami), and these are the folder list $(ls -la)"
RUN pio pkg install
RUN echo "All packages preinstalled in this cache layer"
RUN pio pkg install -g -t "tool-esptoolpy@1.40501.0"
RUN pio pkg install -g -t "tool-cmake@3.16.4"
RUN pio pkg install -g -t "tool-ninja@1.7.1"
RUN pio pkg install -g -t "tool-scons@4.40700.0"
RUN pio pkg install -g -l "googletest@1.12.1"
RUN echo "Extra packages preinstalled in this cache layer"
# Copy the platformio.ini file into the container at /workspace/app
RUN echo "You should now have a pre-downloaded image with all tools and packages installed"
CMD ["/bin/bash"]