forked from benzino77/tasmocompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
19 lines (18 loc) · 797 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:12.16.2-buster-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 platformio && \
DEBIAN_FRONTEND=noninteractive apt-get clean && \
yarn global add 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 yarn.lock .yarnrc /tasmocompiler/
RUN cd /tasmocompiler && yarn install && \
yarn build && \
yarn cache clean
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
WORKDIR /tasmocompiler
ENTRYPOINT ["nodemon", "server/app.js"]