forked from benzino77/tasmocompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
18 lines (17 loc) · 802 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM node:16-bookworm-slim
LABEL maintainer="Piotr Antczak <[email protected]>"
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3 git python3-setuptools && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip && pip3 install --break-system-packages platformio && \
DEBIAN_FRONTEND=noninteractive apt-get clean && \
npm install -g nodemon && \
cd /tmp && git clone https://github.com/arendst/Tasmota.git && \
rm -rf /var/lib/apt/lists/*
ADD public /tasmocompiler/public/
ADD server /tasmocompiler/server/
ADD src /tasmocompiler/src/
ADD package.json package-lock.json /tasmocompiler/
RUN cd /tasmocompiler && npm ci && npm run build
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
WORKDIR /tasmocompiler
ENTRYPOINT ["nodemon", "server/app.js"]
EXPOSE 3000/tcp