forked from benzino77/tasmocompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (21 loc) · 850 Bytes
/
Dockerfile
File metadata and controls
22 lines (21 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ARG BASE_IMAGE=node:12.16.2-buster-slim
FROM $BASE_IMAGE
LABEL maintainer="Piotr Antczak <antczak.piotr@gmail.com>"
COPY qemu-arm-static /usr/bin
COPY qemu-aarch64-static /usr/bin
RUN apt-get update && apt-get install -y python3 git python3-setuptools && \
apt-get install -y python3-pip && pip3 install --no-cache-dir platformio && \
apt-get autoremove -y python3-pip && 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/server.js"]